conohasay
conohasay はcowsayライクなCLIツールです。ターミナル上でConoHaのキャラクターが楽しくおしゃべりしますよ。
(English README here)
動作環境
動作環境はmacOSおよびLinux系OSです(Windowsは動作しません)。ターミナルが256色表示をサポートしている必要があります。
インストール
以下の手順で実行ファイルをダウンロードしてください。以下のコマンドはカレントディレクトリにダウンロードしますが、使用頻度が高い場合はパスの通った場所に置いてください。
macOS
curl -sL https://github.com/hironobu-s/conohasay/releases/download/current/conohasay-osx.amd64.gz | zcat > conohasay && chmod +x ./conohasay
./conohasay -h
Linux(amd64)
curl -sL https://github.com/hironobu-s/conohasay/releases/download/current/conohasay-linux.amd64.gz | zcat > conohasay && chmod +x ./conohasay
./conohasay -h
Docker
Dockerがインストールされているなら、下記コマンドですぐに試すことができます。
docker run -i hironobu/conohasay -h
使い方
引数を渡すと、その文字列を表示します(標準入力から渡すこともできます)
conohasay "I'm ConoHa Mikumo!"
-c
オプションでキャラクターを変更できます。
conohasay -c anzu
-l
オプションで-c
オプションに指定できる値の一覧が取得できます。
# conohasay -l
anzu
conoha
logo
umemiya
-s
オプションでキャラクターのサイズを変更できます。指定できる値はs
, m
, l
のどれかです。
conohasay -c logo -s l
その他のオプションは下記です。
活用例
fortuneコマンドの出力を渡すのがcowsayの定番ですが、hostnameやwやuptimeなどコマンド出力を渡すのも面白いです。
w -s | conohasay -c conoha -s m
ライセンス
MIT