conohasay

command module
v0.0.0-...-3b68989 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL