Skip to content

Commit

Permalink
[scripts][cylc] Add support for unported shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaist committed Oct 16, 2019
1 parent 89ed424 commit 4b4fff6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cylc/flow/scripts/cylc.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,14 +13,19 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

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",
Expand Down

0 comments on commit 4b4fff6

Please sign in to comment.