Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI #1

Merged
merged 7 commits into from Aug 9, 2022
Merged

CLI #1

merged 7 commits into from Aug 9, 2022

Conversation

eggplants
Copy link
Contributor

@eggplants eggplants commented Aug 9, 2022

I have made the genbaneko's CLI more useful.

For information on how to package the CLI to make it available as a global command, see:

https://qiita.com/suzuki_sh/items/f3349efbfe1bdfc0c634
https://github.com/google/budoux/tree/main/javascript

I recommend adding the dist directory to .gitignore.

git clone https://github.com/eggplants/genbaneko
cd genbaneko
git checkout cli
npm i
sudo npm link
$ genbaneko help # or, -h, --help
Usage: genbaneko [options] [command]

Let's display "Yoshi!" on the console.

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  say [string]    say something
  think [string]  think something
  help [command]  display help for command
Usage
$ genbaneko
          ∧  /ヽ
         // ̄ ̄\|
         ∠__╋__〉
        /   ①八① \
        工ニ f(_人_) エ |′
        \   ヽノ  ノ ヘ 
      ⊂⌒)_>―――イ (_) /
       `ー、_ノ/ ̄ヽ |/
         _||  | |
        (  人_ノ Λ
         \ス ̄ ̄レ-Λ \
        ( ̄ ) / / \ノ\
          ̄ ̄ ( ヽ  \_)
            \ノ

$ genbaneko say
 _________ 
< Yoshi!! >
 --------- 
  \       ∧  /ヽ
   \     // ̄ ̄\|
    \    ∠__╋__〉
     \  /   ①八① \
        工ニ f(_人_) エ |′
        \   ヽノ  ノ ヘ 
      ⊂⌒)_>―――イ (_) /
       `ー、_ノ/ ̄ヽ |/
         _||  | |
        (  人_ノ Λ
         \ス ̄ ̄レ-Λ \
        ( ̄ ) / / \ノ\
          ̄ ̄ ( ヽ  \_)
            \ノ

$ genbaneko say aaa
 _____ 
< aaa >
 ----- 
  \       ∧  /ヽ
   \     // ̄ ̄\|
    \    ∠__╋__〉
     \  /   ①八① \
        工ニ f(_人_) エ |′
        \   ヽノ  ノ ヘ 
      ⊂⌒)_>―――イ (_) /
       `ー、_ノ/ ̄ヽ |/
         _||  | |
        (  人_ノ Λ
         \ス ̄ ̄レ-Λ \
        ( ̄ ) / / \ノ\
          ̄ ̄ ( ヽ  \_)
            \ノ

$ genbaneko think
 _________ 
( Yoshi!! )
 --------- 
  〇       ∧  /ヽ
   〇     // ̄ ̄\|
    〇    ∠__╋__〉
     〇  /   ①八① \
        工ニ f(_人_) エ |′
        \   ヽノ  ノ ヘ 
      ⊂⌒)_>―――イ (_) /
       `ー、_ノ/ ̄ヽ |/
         _||  | |
        (  人_ノ Λ
         \ス ̄ ̄レ-Λ \
        ( ̄ ) / / \ノ\
          ̄ ̄ ( ヽ  \_)
            \ノ

$ genbaneko think bbb
 _____ 
( bbb )
 ----- 
  〇       ∧  /ヽ
   〇     // ̄ ̄\|
    〇    ∠__╋__〉
     〇  /   ①八① \
        工ニ f(_人_) エ |′
        \   ヽノ  ノ ヘ 
      ⊂⌒)_>―――イ (_) /
       `ー、_ノ/ ̄ヽ |/
         _||  | |
        (  人_ノ Λ
         \ス ̄ ̄レ-Λ \
        ( ̄ ) / / \ノ\
          ̄ ̄ ( ヽ  \_)
            \ノ

Is mGenbaneko.nomal a typo of normal ?

@moons-14 moons-14 merged commit 711c89d into moons-14:master Aug 9, 2022
@eggplants eggplants deleted the cli branch August 9, 2022 23:53
@eggplants
Copy link
Contributor Author

dist still remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants