Beispiel #1
0
def setup_argparser(commands):
    command = commands.add_parser('sites',
                                  help='Discover Plone sites.',
                                  description=DOCS)
    command.set_defaults(func=sites_command)
    add_requestor_authentication_argument(command)
    add_json_argument(command)
Beispiel #2
0
def setup_argparser(commands):
    command = commands.add_parser(
        'sites',
        help='Discover Plone sites.',
        description=DOCS)
    command.set_defaults(func=sites_command)
    add_requestor_authentication_argument(command)
    add_json_argument(command)
Beispiel #3
0
def setup_argparser(commands):
    command = commands.add_parser(
        'list',
        help='List upgrades or profiles.',
        description=DOCS)
    command.set_defaults(func=list_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
    add_json_argument(command)

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades', '-u',
                       help='List all proposed upgrades.',
                       dest='action',
                       action='store_const',
                       const='list_proposed_upgrades')

    group.add_argument('--profiles', '-p',
                       help='List all installed profiles.',
                       dest='action',
                       action='store_const',
                       const='list_profiles')
Beispiel #4
0
def setup_argparser(commands):
    command = commands.add_parser('list',
                                  help='List upgrades or profiles.',
                                  description=DOCS)
    command.set_defaults(func=list_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
    add_json_argument(command)

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades',
                       '-u',
                       help='List all proposed upgrades.',
                       dest='action',
                       action='store_const',
                       const='list_proposed_upgrades')

    group.add_argument('--profiles',
                       '-p',
                       help='List all installed profiles.',
                       dest='action',
                       action='store_const',
                       const='list_profiles')