「pione action print」の版間の差分

提供: Eospedia
移動: 案内検索
行1: 行1:
'''pione action print'''とはアクションファイル内の指定したルール(transition)のコードを出力する[[PIONEコマンド]]です。
+
'''pione action print'''とはアクションファイル内の指定したルール(transition)のコードを出力する[[PIONE]]の[[コマンド]]です。
  
 
== オプション一覧 ==
 
== オプション一覧 ==

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

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