Re:Google Cloud Platform’s new interactive CLI
by oblio on Friday March 16, 2018 @11:10AM
(#16601179)
I think this is quite popular: https://github.com/jonathanslenders/python-prompt-toolkit
For Rust this library seems nice: https://github.com/kbknapp/clap-rs (it generates autocompletion scripts for shells)
Re:Google Cloud Platform’s new interactive CLI
by Arcsech on Friday March 16, 2018 @04:31PM
(#16603814)
To build on Rust's options, there's the Structopt library[0] that generates a CLI interface using clap-rs from an annotated struct, which is a very, very nice experience for making command line tools.
Re:Google Cloud Platform’s new interactive CLI
by phjordon on Friday March 16, 2018 @11:14AM
(#16601218)
It's a pretty neat tool. I've played around with it a lot, and it's used in the aws-shell[0] to a very similar effect as the OP. (Disclaimer: I work for aws and have contributed to the aws-shell.)
Re:Google Cloud Platform’s new interactive CLI
by Chaosteil on Friday March 16, 2018 @11:14AM
(#16601217)
I believe this looks awfully familiar to this: https://github.com/c-bata/go-prompt (which is based on the previously mentioned `python-promt-toolkit`)
Edit: I am slightly familiar with this family of tools. I was curious if there was a pointer to exactly the one used here.