使用方法
インストール方法
Windows
WSL で Linux 版を利用することをおすすめします。
PS> curl.exe -OL https://github.com/maokij/ocala/releases/download/v0.0.6/ocala_Windows_x86_64.zip
PS> tar.exe xvf ocala_Windows_x86_64.zip
PS> .\ocala\bin\ocala.exe -V
- 最新版をダウンロードします
- アーカイブを展開します
- 展開された実行ファイルでバージョン情報が表示されることを確認します
PS> .\ocala\bin\ocala.exe -V
- 環境変数 PATH に展開された ocala/bin をフルパスで追加します
Linux
$ curl -OL https://github.com/maokij/ocala/releases/download/v0.0.6/ocala_Linux_x86_64.tar.gz
$ tar xvf ocala_Linux_x86_64.tar.gz
$ ./ocala/bin/ocala -V
- 最新版をダウンロードします
- アーカイブを展開します
- 展開された実行ファイルでバージョン情報が表示されることを確認します
$ ./ocala/bin/ocala -V
- 環境変数 PATH に展開された ocala/bin をフルパスで追加するか、
PATH に含まれるディレクトリに ocala/bin/ocala のシンボリックを作成します
$ ln -nfs "$(realpath ./ocala/bin/ocala)" ~/.local/bin/ocala
コマンドラインオプション
Usage: ocala [options] file
Options:
-D value
Define the symbol
-I value
Add the directory to the include path
-L string
Specify the list file name
-V Display the version information
-l Generate a list file
-o string
Specify the output file name
-t string
Specify the target arch