Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
/ conohasay Public archive

conohasay is a program that generates ASCII picture of ConoHa characters

License

Notifications You must be signed in to change notification settings

hironobu-s/conohasay

Repository files navigation

conohasay

MIT License Build Status codebeat badge

conohasaycowsayライクなCLIツールです。ターミナル上でConoHaのキャラクターが楽しくおしゃべりしますよ。

conohasay

(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!"

conohasay

-c オプションでキャラクターを変更できます。

conohasay -c anzu

conohasay

-l オプションで-cオプションに指定できる値の一覧が取得できます。

# conohasay -l
anzu
conoha
logo
umemiya

-s オプションでキャラクターのサイズを変更できます。指定できる値はs, m, lのどれかです。

conohasay -c logo -s l

その他のオプションは下記です。

  • -W (wrapcolumn)吹き出しメッセージの幅を指定します。cowsayの同名オプションと同じ機能です。

  • -f (force-vertical-layout)キャラクターと吹き出しメッセージを縦に並べることを強制します。(デフォルトは端末の幅に応じて自動調整されます)。

  • -v バージョンを表示します

  • -h ヘルプを表示します

活用例

fortuneコマンドの出力を渡すのがcowsayの定番ですが、hostnamewuptimeなどコマンド出力を渡すのも面白いです。

w -s | conohasay -c conoha -s m

conohasay

ライセンス

MIT

About

conohasay is a program that generates ASCII picture of ConoHa characters

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages