MVMauricio Villegasinmauvilsa.hashnode.dev·Aug 20 · 15 min readTab completion, without writing a completion scriptThe first post derived a whole command line interface from a client class, and the second turned it into a command that runs from any directory. Both left the same gap in place: the tool knows a great00
MVMauricio Villegasinmauvilsa.hashnode.dev·Aug 10 · 8 min readA CLI that works from anywhereThe previous post turned a client class into a command line tool with a single call to auto_cli. It ended with a file you run like this: python quakes_cli.py search --min_magnitude=5 That is fine whi00
MVMauricio Villegasinmauvilsa.hashnode.dev·Aug 3 · 18 min readFrom API client to CLI, without writing a parserAt some point most of us write a class that wraps an HTTP API. The constructor takes the things that do not change between calls: the base URL, the credentials, the timeout, a few defaults. The method00