Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tea-cli help text #816

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <reweeden@alaska.edu>"]
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
Loading