Skip to content

Commit

Permalink
Merge pull request #816 from asfadmin/rew/tea-cli-help
Browse files Browse the repository at this point in the history
Improve tea-cli help text
  • Loading branch information
reweeden authored May 17, 2024
2 parents fdae029 + ec103fc commit c80e8f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tea-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "tea-cli"
version = "0.1.0"
version = "0.1.1"
description = "TEA command line tool"
authors = ["Rohan Weeden <[email protected]>"]
license = "Apache-2.0"
Expand Down
21 changes: 17 additions & 4 deletions tea-cli/tea_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,25 @@ def main(args=None):
def get_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description="Thin Egress App Command Line Tool")
parser.add_argument("-v", help="enable verbose output", action="store_true", dest="verbose")
subparsers = parser.add_subparsers(required=True, dest="command")

parser_list = subparsers.add_parser("list")
subparsers = parser.add_subparsers(
required=True,
dest="command",
metavar="subcommand",
)

parser_list = subparsers.add_parser(
"list",
help="show a list of deployable versions",
)
configure_subparser(parser_list, list_versions)

parser_quickdeploy = subparsers.add_parser("quickdeploy")
parser_quickdeploy = subparsers.add_parser(
"quickdeploy",
help=(
"deploy necessary TEA resources to an account for development or "
"testing purposes. For production, use terraform or CloudFormation"
),
)
configure_subparser(parser_quickdeploy, quick_deploy)

return parser
Expand Down

0 comments on commit c80e8f7

Please sign in to comment.