pione action printとはアクションファイル内の指定したルール(transition)のコードを出力するPIONEのコマンドです。
オプション一覧
| オプション |
引数の型 |
引数のデフォルト |
説明 |
| 引数 |
location |
必須 |
Location of action document |
| 引数 |
name |
必須 |
Action name |
| --domain-dump |
LOCATION |
|
Import the domain dump file |
| --color |
BOOLEAN |
true |
出力結果の文字に色を付ける |
| --debug |
[TYPE] |
system |
デバッグモードで実行 |
| -h |
[FORMAT] |
txt |
ヘルプを表示 |
| -v |
なし |
なし |
バージョンを表示 |
実行例
オプション必須項目のみの場合
アクションファイル
# Serial2.pione
## First
Multiply 2 to all input data.
```
awk '{print $1*2}' {$I[1]} > {$O[1]}
```
## Second
Add 1 to all input data.
```
awk '{print $1+1}' {$I[1]} > {$O[1]}
```
実行結果
/PIONE-PNML$ pione action print Basic2/Serial2.md First
awk '{print $1*2}' {$I[1]} > {$O[1]}
/PIONE-PNML$ pione action print Basic2/Serial2.md Second
awk '{print $1+1}' {$I[1]} > {$O[1]}
ルールFirst, Secondの内容がそれぞれ表示されています。