netromdk / slacker

Slacker - Easy access to the Slack API and admin of workspaces/teams.
MIT License
14 stars 0 forks source link

Prompt supports sub command completions #72

Closed netromdk closed 6 years ago

netromdk commented 6 years ago

Depends on #71 to be merged first so I can rebase onto here.

This PR implements support for sub command completions after the first command. It parses the argument parser, if defined, to retrieve the names of arguments and their meta descriptions.

The custom Completer class reuses any discovered command completers as a speedup.

And verify that Python v3+ is used to run script.