コマンドラインインターフェース
CLIには自身のドキュメントが含まれています。specforge --helpを実行するとすべての利用可能なコマンドが表示され、specforge <command> --helpで各コマンドの詳細な使い方を確認できます。
$ specforge --help
Usage: specforge COMMAND [--verbose VERBOSITY]
Available commands:
parse Check if the Lilo files in a project parse correctly.
check Typecheck the Lilo files in a project.
format Format the Lilo files in a project.
monitor Monitor a spec on a data file, producing an output signal.
eval Evaluate a spec at the first timestamp of a data file.
streammon Monitor a spec in streaming mode from standard input.
export Export a spec to another formalism (Lilo, JSON, RTAMT).
schema Generate a schema or data template for a system.
init Initialize a new Lilo project.
flatten Flatten hierarchical components in a system.
serve Start the SpecForge server (for the VS Code extension / Python SDK).
レコードエンコーディング
いくつかのコマンドはRECORD_ENCODINGサブコマンド(flatまたはnested)を受け付け、レコード型のシグナルとパラメータの表現方法を制御します。flatエンコーディングは、フィールドセパレータを設定するための-s / --separator SEPARATORを受け付けます(デフォルト: "_")。
エンコーディングが指定されない場合、デフォルトはファイル形式によって異なります。CSVの場合はflat、**JSON/JSONLの場合はnested**です。
詳細な説明と例については、データファイルの章のレコードエンコーディングを参照してください。