diff --git a/cylc/flow/scripts/cylc.py b/cylc/flow/scripts/cylc.py index 9461d4bc7d7..79dbc849334 100644 --- a/cylc/flow/scripts/cylc.py +++ b/cylc/flow/scripts/cylc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python - # Copyright (C) 2008-2017 NIWA # # This program is free software: you can redistribute it and/or modify @@ -14,14 +13,19 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os + import click import pkg_resources -command_list = ( +# These will be ported to python as click commands +bash_commands = ["cylc-graph-diff", "cylc-jobscript", "cylc-scp-transfer"] + +# First step of the click port, the list won't be necessary after that +command_list = bash_commands + list( pkg_resources.get_entry_map("cylc-flow").get("console_scripts").keys() ) + category_list = [ "control", "information",