def get_parser(): parser = argparse.ArgumentParser( usage='ho wipeout', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) AWS entities. The documentation for each sub-subcommand can be displayed with ho wipeout sub-subcommand --help For instance: ho wipeout delegates --help usage: ho wipeout delegates [-h] ... For more information, refer to the README.rst file at https://github.com/smithfarm/ceph-auto-aws/README.rst """)) subparsers = parser.add_subparsers( title='wipeout subcommands', description='valid wipeout subcommands', help='wipeout subcommand -h', ) subparsers.add_parser( 'delegates', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) delegate clusters. """), epilog=textwrap.dedent(""" Examples: $ ho wipeout subnets $ echo $? 0 """), help='Wipe out (completely delete) delegate clusters', parents=[cluster_options_parser()], add_help=False, ).set_defaults( func=WipeOutDelegates, ) subparsers.add_parser( 'subnets', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) one or more subnets. Ipsum dolum """), epilog=textwrap.dedent(""" Examples: $ ho wipeout subnets 3 $ ho wipeout subnets 1,5 $ ho wipeout subnets 1-3,6 """), help='Wipe out (completely delete) one or more subnets', parents=[cluster_options_parser()], add_help=False, ).set_defaults( func=WipeOutSubnets, ) subparsers.add_parser( 'vpc', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) VPC. Ipsum dolum """), epilog=textwrap.dedent(""" Examples: $ ho wipeout vpc $ echo $? 0 """), help='Wipe out (completely delete) VPC', parents=[dry_run_only_parser()], add_help=False, ).set_defaults( func=WipeOutVPC, ) return parser
def get_parser(): parser = argparse.ArgumentParser(usage='ho install', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegats. The documentation for each sub-subcommand can be displayed with ho install sub-subcommand --help For instance: ho install delegate --help usage: ho install delegate [-h] ... For more information, refer to the README.rst file at https://github.com/smithfarm/ceph-auto-aws/README.rst """)) subparsers = parser.add_subparsers( title='install subcommands', description='valid install subcommands', help='install subcommand -h', ) subparsers.add_parser( 'delegates', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegate cluster(s) in AWS. """), epilog=textwrap.dedent(""" Example: $ ho install delegates 1-12 $ echo $? 0 """), help='Install delegate cluster(s) in AWS', parents=[cluster_options_parser()], add_help=False, ).set_defaults(func=InstallDelegates, ) subparsers.add_parser( 'keypairs', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Import SSH public key into AWS EC2. """), epilog=textwrap.dedent(""" Example: $ ho install keypair $ echo $? 0 """), help='Import SSH public key into AWS EC2', parents=[cluster_options_parser()], add_help=False, ).set_defaults(func=InstallKeypairs, ) subparsers.add_parser( 'subnets', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegate subnet(s) in AWS. """), epilog=textwrap.dedent(""" Example: $ ho install subnets 1-12 $ ho install subnets --all $ ho install subnets --all --dry-run """), help='Install delegate subnet(s) in AWS', parents=[cluster_options_parser()], add_help=False, ).set_defaults(func=InstallSubnets, ) subparsers.add_parser( 'vpc', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install Virtual Private Cloud (VPC). """), epilog=textwrap.dedent(""" Example: $ ho install vpc $ ho install --dry-run """), help='Install Virtual Private Cloud (VPC)', parents=[dry_run_only_parser()], add_help=False, ).set_defaults(func=InstallVPC, ) return parser
def get_parser(): parser = argparse.ArgumentParser( usage='ho install', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegats. The documentation for each sub-subcommand can be displayed with ho install sub-subcommand --help For instance: ho install delegate --help usage: ho install delegate [-h] ... For more information, refer to the README.rst file at https://github.com/smithfarm/ceph-auto-aws/README.rst """)) subparsers = parser.add_subparsers( title='install subcommands', description='valid install subcommands', help='install subcommand -h', ) subparsers.add_parser( 'delegates', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegate cluster(s) in AWS. """), epilog=textwrap.dedent(""" Example: $ ho install delegates 1-12 $ echo $? 0 """), help='Install delegate cluster(s) in AWS', parents=[cluster_options_parser()], add_help=False, ).set_defaults( func=InstallDelegates, ) subparsers.add_parser( 'keypairs', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Import SSH public key into AWS EC2. """), epilog=textwrap.dedent(""" Example: $ ho install keypair $ echo $? 0 """), help='Import SSH public key into AWS EC2', parents=[cluster_options_parser()], add_help=False, ).set_defaults( func=InstallKeypairs, ) subparsers.add_parser( 'subnets', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install delegate subnet(s) in AWS. """), epilog=textwrap.dedent(""" Example: $ ho install subnets 1-12 $ ho install subnets --all $ ho install subnets --all --dry-run """), help='Install delegate subnet(s) in AWS', parents=[cluster_options_parser()], add_help=False, ).set_defaults( func=InstallSubnets, ) subparsers.add_parser( 'vpc', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Install Virtual Private Cloud (VPC). """), epilog=textwrap.dedent(""" Example: $ ho install vpc $ ho install --dry-run """), help='Install Virtual Private Cloud (VPC)', parents=[dry_run_only_parser()], add_help=False, ).set_defaults( func=InstallVPC, ) return parser
def get_parser(): parser = argparse.ArgumentParser(usage='ho wipeout', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) AWS entities. The documentation for each sub-subcommand can be displayed with ho wipeout sub-subcommand --help For instance: ho wipeout delegates --help usage: ho wipeout delegates [-h] ... For more information, refer to the README.rst file at https://github.com/smithfarm/ceph-auto-aws/README.rst """)) subparsers = parser.add_subparsers( title='wipeout subcommands', description='valid wipeout subcommands', help='wipeout subcommand -h', ) subparsers.add_parser( 'delegates', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) delegate clusters. """), epilog=textwrap.dedent(""" Examples: $ ho wipeout subnets $ echo $? 0 """), help='Wipe out (completely delete) delegate clusters', parents=[cluster_options_parser()], add_help=False, ).set_defaults(func=WipeOutDelegates, ) subparsers.add_parser( 'subnets', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) one or more subnets. Ipsum dolum """), epilog=textwrap.dedent(""" Examples: $ ho wipeout subnets 3 $ ho wipeout subnets 1,5 $ ho wipeout subnets 1-3,6 """), help='Wipe out (completely delete) one or more subnets', parents=[cluster_options_parser()], add_help=False, ).set_defaults(func=WipeOutSubnets, ) subparsers.add_parser( 'vpc', formatter_class=CustomFormatter, description=textwrap.dedent("""\ Wipe out (completely delete) VPC. Ipsum dolum """), epilog=textwrap.dedent(""" Examples: $ ho wipeout vpc $ echo $? 0 """), help='Wipe out (completely delete) VPC', parents=[dry_run_only_parser()], add_help=False, ).set_defaults(func=WipeOutVPC, ) return parser