|
|
行1: |
行1: |
− | '''pione compile'''とは[[PNML]]ファイルから[[pione定義書]]へ変換を行う[[PIONEコマンド]]です。 | + | '''pione compile'''とは[[PNML]]ファイルから[[PIONE定義書]]へ変換を行う[[PIONE]]の[[コマンド]]です。 |
| | | |
| == オプション一覧 == | | == オプション一覧 == |
行96: |
行96: |
| | | |
| ==== 出力ファイルを指定する ==== | | ==== 出力ファイルを指定する ==== |
− | 変換された[[pione定義書]]をファイル保存したいときはシェルコマンドの'''>'''などで組み合わせて出力します。<br> | + | 変換された[[PIONE定義書]]をファイル保存したいときはシェルコマンドの'''>'''などで組み合わせて出力します。<br> |
| <br> | | <br> |
| | | |
行143: |
行143: |
| | | |
| === オプション --editor === | | === オプション --editor === |
− | 変換された[[pione定義書]]に作者名を付けることができます。<br> | + | 変換された[[PIONE定義書]]に作者名を付けることができます。<br> |
| <br> | | <br> |
| | | |
行164: |
行164: |
| | | |
| === オプション --package-name === | | === オプション --package-name === |
− | 変換された[[pione定義書]]にパッケージ名を付けることができます。<br> | + | 変換された[[PIONE定義書]]にパッケージ名を付けることができます。<br> |
| <br> | | <br> |
| | | |
行185: |
行185: |
| | | |
| === オプション --tag === | | === オプション --tag === |
− | 変換された[[pione定義書]]にタグ名を付けることができます。<br> | + | 変換された[[PIONE定義書]]にタグ名を付けることができます。<br> |
| <br> | | <br> |
| | | |
2014年12月11日 (木) 01:23時点における最新版
pione compileとはPNMLファイルからPIONE定義書へ変換を行うPIONEのコマンドです。
オプション一覧
オプション |
引数の型 |
引数のデフォルト |
説明 |
なし |
引数 |
必須 |
PNMLファイル名 |
--action |
LOCATION |
参照: #オプション必須項目のみの場合 |
アクションファイル名 |
--editor |
NAME |
なし |
作者名 |
--flow-name |
NAME |
なし |
Set flow name |
--package-name |
NAME |
なし |
パッケージ名 |
--tag |
NAME |
なし |
タグ名 |
--color |
BOOLEAN |
true |
出力結果の文字に色を付ける |
--debug |
[TYPE] |
system |
デバッグモードで実行 |
-h |
[FORMAT] |
txt |
ヘルプを表示 |
-v |
なし |
なし |
バージョンを表示 |
実行例
オプション必須項目のみの場合
PNMLファイル: Media:HelloWorld.pnml.zip
実行結果
/Basic1$ pione compile HelloWorld.pnml
Rule Main
output 'message.txt'
Flow
rule Hello
End
Rule Hello
output ('message.txt').touch
End
--actionにてアクションファイル名を指定しない場合はルール内で出力ファイルをtouchする処理として出力されます。
出力ファイルを指定する
変換されたPIONE定義書をファイル保存したいときはシェルコマンドの>などで組み合わせて出力します。
実行結果
/Basic1$ pione compile HelloWorld.pnml > HelloWorld.pione
オプション --action
指定したアクションファイルのルールを適用して変換されます。
アクションファイル
# HelloWorld.pione
## Hello
Here, you can write Comment.
```
echo "Hello PIONE world !" > {$O[1]}
```
実行結果
/Basic1$ pione compile HelloWorld.pnml --action HelloWorld.md
Rule Main
output 'message.txt'
Flow
rule Hello
End
Rule Hello
output 'message.txt'
Action
echo "Hello PIONE world !" > {$O[1]}
End
ルールHello内にアクションファイルの処理が適用されています。
オプション --editor
変換されたPIONE定義書に作者名を付けることができます。
実行結果
/Basic1$ pione compile HelloWorld.pnml --editor XXX
.@ Editor :: "XXX"
Rule Main
output 'message.txt'
Flow
rule Hello
End
Rule Hello
output ('message.txt').touch
End
オプション --package-name
変換されたPIONE定義書にパッケージ名を付けることができます。
実行結果
/Basic1$ pione compile HelloWorld.pnml --package-name HelloWorld
.@ PackageName :: "HelloWorld"
Rule Main
output 'message.txt'
Flow
rule Hello
End
Rule Hello
output ('message.txt').touch
End
オプション --tag
変換されたPIONE定義書にタグ名を付けることができます。
実行結果
/Basic1$ pione compile HelloWorld.pnml --tag v1.0.0
.@ Tag :: "v1.0.0"
Rule Main
output 'message.txt'
Flow
rule Hello
End
Rule Hello
output ('message.txt').touch
End