Settings

Theme

Show HN: Jenkins-fire-CLI A Jenkins command line tool built with Python-fire

github.com

2 points by link89 4 years ago · 3 comments · 1 min read

Reader

Jenkins community has provided the offical jenkins-cli.jar but it is not very intuitive to use. So I just create a tiny wrapper for it to make it less noisy by dowlonading the jar packages and injecting user credential automatically. Thanks to the google fire library creating a command line tools nowadays is incredibly simple.

mdmglr 4 years ago

Was not aware of Fire [1]. Looks like a nice library to quickly create CLIs. I wonder how this compares to Typer, cliff, cement, and click.

[1] https://google.github.io/python-fire/guide/

  • link89OP 4 years ago

    It turns your function or class into command line with one line of code. It's based on runtime type inspection so you don't even need to use decorator which most of the command line framework does (click for example).

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection