$30 off During Our Annual Pro Sale. View Details »

My Practical CLI Tools

pocke
October 21, 2017

My Practical CLI Tools

pocke

October 21, 2017
Tweet

More Decks by pocke

Other Decks in Programming

Transcript

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

    View Slide

  2. Agenda

    View Slide

  3. Agenda
    ● Introduce my practical CLI tools.

    View Slide

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

    View Slide

  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/

    View Slide

  6. Back to the topic

    View Slide

  7. Do you know CLI tool?

    View Slide

  8. View Slide

  9. CLI tool is a kind of
    tool for Command
    Line(e.g. ls, cat).

    View Slide

  10. Introduce my practical CLI tools

    View Slide

  11. Introduce my practical CLI tools
    Important!

    View Slide

  12. 1st: Emo

    View Slide

  13. Emo
    ● Emo suggests you emoji
    ● Installation:
    ○ $ go get github.com/pocke/emo
    ○ Requirement: go-lang
    ● DEMO
    ○ $ emo all
    ○ $ emo rand 10

    View Slide

  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!

    View Slide

  15. 2nd: Flowterm

    View Slide

  16. Flowterm
    ● String flows in a terminal.
    ● Installation:
    ○ $ gem install flowterm
    ○ Requirement: Ruby
    ● DEMO
    ○ $ echo 'Hello, flowterm!' | flowterm
    ○ $ cowsay 'Hello' | flowterm

    View Slide

  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!

    View Slide

  18. Conclusion

    View Slide

  19. Conclusion
    ● Emo and Flowterm are very practical!
    ● And, you can create practical CLI tool easily.
    Thank you for listening

    View Slide