alces-software / adminware

A sandbox CLI for running commands remotely across nodes
1 stars 0 forks source link

Handle directories without config.yaml files in the tools file tree inteligently somehow #85

Closed DavidMarchant closed 5 years ago

DavidMarchant commented 6 years ago

At the moment they generate a click group with no associated commands & as such display in the autocomplete of the CLI

adminware> batch run -n node missing-command 
Usage: adminware  batch run missing-command [OPTIONS] COMMAND [ARGS]...

  Descend into the missing-command namespace

Options:
  --help  Show this message and exit.```
DavidMarchant commented 5 years ago

With the swap from manually, recursively scrubbing the file tree & generating click commands as we go (https://github.com/alces-software/adminware/pull/133) to building a dict of commands using glob this is no longer an issue. Groups with no associated config.yamls won't appear