3 ms·
I'm going to do my own digging when I'm not mobile but do you or anyone else know if there is a generalized library to provide an auto completing CLI like SAWS?
by codezero 11y ago
I'm going to do my own digging when I'm not mobile but do you or anyone else know if there is a generalized library to provide an auto completing CLI like SAWS? That would be super useful for a lot of tools.
- NachoDuck 11y agoI'm not sure if this particular tool makes use of it but saws uses the python-prompt-toolkit - https://github.com/jonathanslenders/python-prompt-toolkit https://github.com/jonathanslenders/python-prompt-toolkit
- codezero 11y agoAwesome, that's exactly what I was looking for, thanks so much!
- thomasballinger 11y agoIndeed it does, https://github.com/awslabs/aws-shell/blob/master/setup.py#L10 https://github.com/awslabs/aws-shell/blob/master/setup.py#L1... Python Prompt Toolkit is pretty stellar, enough so to motivated writing a command line interface in Python instead of another language in my opinion.
- ollysb 11y agoCan't find anything in a search, is there something similar for ruby?