「pione action print」の版間の差分

提供: Eospedia
移動: 案内検索
行1: 行1:
'''pione action print'''とはアクション文書の表示を行う[[PIONEコマンド]]です。
+
'''pione action print'''とはアクションファイル内の指定したルール(transition)のコードを出力する[[PIONEコマンド]]です。
  
 
== オプション一覧 ==
 
== オプション一覧 ==
行56: 行56:
 
== 実行例 ==
 
== 実行例 ==
 
=== オプション必須項目のみの場合 ===
 
=== オプション必須項目のみの場合 ===
 +
アクションファイル<br>
 
<pre>
 
<pre>
 +
# 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]}
 +
```
 +
</pre>
 +
<br>
 +
 +
実行結果<br>
 +
<pre>
 +
/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]}
 
</pre>
 
</pre>
 +
ルールFirst, Secondの内容がそれぞれ表示されています。<br>
 
<br>
 
<br>

2014年12月9日 (火) 07:33時点における版

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の内容がそれぞれ表示されています。