ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install tomltomlhost を持つ [database] テーブルは database.host で指定します。パーサーは一般的なホスティング設定向けで、複雑な
toml <file> [key|options] · toml dump <file>toml <file> [key|options] | toml dump <file>Inspect
toml <file>toml <file> <key>ドット区切りの完全一致パスを表示する
toml dump <file>正規化した
-f <text|mask> [-k|-v]キーまたは値を検索する。* と ? を含む場合はマスクとして扱う
-w <key> : <value>値をファイルへ直接書き込む
-w <key> < <file>別ファイルから読み取った値を書き込む
-d <key>ドット区切りパスの値を削除する
-cまず database.host で値を確認します。-f はキーと値、-k はキーのみ、-v は値のみを検索します。通常の文字列は大文字小文字を区別せず、* と ? はワイルドカードです。-c は構文の検査、dump は再生成したテキストの表示です。
-w <key> : <value> はすぐに保存し、-w <key> < <file> は別ファイルから値を読み込み、-d <key> は指定したパスを削除します。数値や true/false は型付きの値として解釈される場合があります。更新前にバックアップを作成してください。$ は Core で最後に開いたファイルを指し、ファイル名だけでも登録済みの処理を呼び出せます。
基本的なセクション、文字列、数値、真偽値、JSON 形式の配列に対応します。
用意された例をページ上でそのまま実行できます。結果は事前に生成されてブラウザに表示され、サーバーではターミナルコマンドを実行しません。
現在の互換バージョンをインストールします。全機能は Base、縮小版は Minimum を選び、すでに導入済みのモジュール更新には upgrade を使います。
Base と Minimum は同じ現在のモジュールリリースの二つのパッケージです。
ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install toml縮小パッケージをインストールします。ローカルリファレンスは含まれず、
install toml -mこの公開済みバージョンを正確に指定してインストールします。
install toml -v 1.1.6upgrade が互換性を確認し、必要な場合だけブロックを置換します。
upgrade tomlコアや他のモジュールに触れず拡張ブロックを削除します。
install toml -u例はコピーできますが、サイトは実行しません。実プロジェクトではパス、権限、破壊的オプションを確認してください。
cd \sandbox\config | toml app.tomlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.tomlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml database.hostlocalhosttoml config/app.toml database.options.0utf8mb4toml config/app.toml -f "database.*" -kdatabase.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml -f "strict" -vdatabase.options.1 stricttoml config/app.toml -f "debug"application.debug truetoml config/app.toml -w database.port : 3307database.port 3307toml config/app.toml -w application.name < config/plain-value.txtapplication.name demo-sitetoml config/app.toml -d application.debugapplication.name lil-shop
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml -cValid TOMLtoml dump config/app.toml[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306
options = ["utf8mb4","strict"]toml config/app.toml unknown.keyPath not foundtoml config/invalid.toml -cDuplicate TOML keytoml config/missing.tomlFile not foundtoml config/app.toml -w database.portValue required after : or sandbox/config/app.toml例では、保護されたドキュメント用 /sandbox/ ワークスペースのファイルまたはディレクトリを使います。
[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306
options = ["utf8mb4", "strict"]