My Practical CLI Tools

7bc6612fa20296bf652f6b0357db81c1?s=47 pocke
October 21, 2017

My Practical CLI Tools

7bc6612fa20296bf652f6b0357db81c1?s=128

pocke

October 21, 2017
Tweet

Transcript

  1. My Practical CLI Tools 21 Oct. 2017 freestyle-mokumoku #33 https://freestyle-mokumoku.connpass.com/event/68385/

  2. Agenda

  3. Agenda • Introduce my practical CLI tools.

  4. Introduce myself (but I'm not a CLI tool!)

  5. Introduce myself • Pocke • Actcat, inc. / SideCI •

    RuboCop's core developer • I'll talk at: ◦ 10/24: Supporterz 勉強会 https://supporterzcolab.com/event/190/ ◦ 11/4: VimConf http://vimconf.vim-jp.org/2017/
  6. Back to the topic

  7. Do you know CLI tool?

  8. None
  9. CLI tool is a kind of tool for Command Line(e.g.

    ls, cat).
  10. Introduce my practical CLI tools

  11. Introduce my practical CLI tools Important!

  12. 1st: Emo

  13. Emo • Emo suggests you emoji • Installation: ◦ $

    go get github.com/pocke/emo ◦ Requirement: go-lang • DEMO ◦ $ emo all ◦ $ emo rand 10
  14. Why emo is practical??? • Fun for Terminals. ◦ Fun

    git branch names. ◦ Fun git commit message. ◦ Fun your prompt of terminal. ▪ e.g.) $ PROMPT_COMMAND="emo rand 3" ◦ Fun… • Very practical!
  15. 2nd: Flowterm

  16. Flowterm • String flows in a terminal. • Installation: ◦

    $ gem install flowterm ◦ Requirement: Ruby • DEMO ◦ $ echo 'Hello, flowterm!' | flowterm ◦ $ cowsay 'Hello' | flowterm
  17. Why flowterm is practical??? • In zsh, you can configure

    `command_not_found_handler` ◦ command_not_found_handler() { banner "$*" | flowterm echo "command not found: $*" return 127 } • Very practical!
  18. Conclusion

  19. Conclusion • Emo and Flowterm are very practical! • And,

    you can create practical CLI tool easily. Thank you for listening