fully removed stuff for the env command
This commit is contained in:
16
src/main.py
16
src/main.py
@@ -35,28 +35,12 @@ def parse_arguments():
|
||||
remove_command.add_argument("name", help="name and version of the package")
|
||||
|
||||
# env command
|
||||
"""env_command = sub_parsers.add_parser(name="env", description="manage Ground environments")
|
||||
env_sub_parsers = env_command.add_subparsers(dest="env_command")
|
||||
|
||||
env_new_command = env_sub_parsers.add_parser(name="new", description="create a new environment")
|
||||
env_new_command.add_argument("name", help="name of the new environment")
|
||||
env_new_command.add_argument("--dont-use", help="by default, the newly created environment will be set as the current environment. if this argument is parsed, then it will be created but not activated.", action="store_true")
|
||||
|
||||
env_destroy_command = env_sub_parsers.add_parser(name="destroy", description="delete an environment")
|
||||
env_destroy_command.add_argument("name", help="name of the environment to DESTROYYY")
|
||||
env_destroy_command.add_argument("--confirm-yes", action="store_true", help="don't ask for confirmation (DANGEROUS)")
|
||||
|
||||
env_list_command = env_sub_parsers.add_parser(name="list", description="list all environments")"""
|
||||
|
||||
|
||||
args = arg_parser.parse_args()
|
||||
|
||||
if not args.command:
|
||||
arg_parser.print_help()
|
||||
sys.exit(0)
|
||||
if args.command == "env" and not args.env_command:
|
||||
env_command.print_help()
|
||||
sys.exit(0)
|
||||
|
||||
if args.command == "install":
|
||||
install(args)
|
||||
|
||||
Reference in New Issue
Block a user