in tools/paconn-cli/paconn/commands/params.py [0:0]
def load_arguments(self, command):
"""
Load command line arguments
"""
with ArgumentsContext(self, _LOGIN) as arg_context:
arg_context.argument(
'client_id',
options_list=['--clid', '-i'],
type=str,
required=False,
help='The client ID.')
arg_context.argument(
'tenant',
options_list=['--tenant', '-t'],
type=str,
required=False,
help='The tenant.')
arg_context.argument(
'authority_url',
options_list=['--authority_url', '-a'],
type=str,
required=False,
help='Authority URL for login.')
arg_context.argument(
'resource',
options_list=['--resource', '-r'],
type=str,
required=False,
help='Resource URL for login.')
arg_context.argument(
SETTINGS,
options_list=SETTINGS_OPTIONS,
type=str,
required=False,
help=SETTINGS_HELP)
arg_context.argument(
'force',
options_list=['--force', '-f'],
type=bool,
required=False,
nargs='?',
default=False,
const=True,
help='Override a previous login, if exists.')
with ArgumentsContext(self, _DOWNLOAD) as arg_context:
arg_context.argument(
ENVIRONMENT,
options_list=ENVIRONMENT_OPTIONS,
type=str,
required=False,
help=ENVIRONMENT_HELP)
arg_context.argument(
CONNECTOR_ID,
options_list=CONNECTOR_ID_OPTIONS,
type=str,
required=False,
help=CONNECTOR_ID_HELP)
arg_context.argument(
'destination',
options_list=['--dest', '-d'],
type=str,
required=False,
help='Destination directory. Non-existent directories will be created.')
arg_context.argument(
POWERAPPS_URL,
options_list=POWERAPPS_URL_OPTIONS,
type=str,
required=False,
help=POWERAPPS_URL_HELP)
arg_context.argument(
POWERAPPS_VERSION,
options_list=POWERAPPS_VERSION_OPTIONS,
type=str,
required=False,
help=POWERAPPS_VERSION_HELP)
arg_context.argument(
SETTINGS,
options_list=SETTINGS_OPTIONS,
type=str,
required=False,
help=SETTINGS_HELP)
arg_context.argument(
'overwrite',
options_list=['--overwrite', '-w'],
type=bool,
required=False,
nargs='?',
default=False,
const=True,
help='Overwrite all the existing connector and settings files.')
with ArgumentsContext(self, _CREATE) as arg_context:
arg_context.argument(
ENVIRONMENT,
options_list=ENVIRONMENT_OPTIONS,
type=str,
required=False,
help=ENVIRONMENT_HELP)
arg_context.argument(
API_PROPERTIES,
options_list=API_PROPERTIES_OPTIONS,
type=str,
required=False,
help=API_PROPERTIES_HELP)
arg_context.argument(
API_DEFINITION,
options_list=API_DEFINITION_OPTIONS,
type=str,
required=False,
help=API_DEFINITION_HELP)
arg_context.argument(
ICON,
options_list=ICON_OPTIONS,
type=str,
required=False,
help=ICON_HELP)
arg_context.argument(
SCRIPT,
options_list=SCRIPT_OPTIONS,
type=str,
required=False,
help=SCRIPT_HELP)
arg_context.argument(
POWERAPPS_URL,
options_list=POWERAPPS_URL_OPTIONS,
type=str,
required=False,
help=POWERAPPS_URL_HELP)
arg_context.argument(
POWERAPPS_VERSION,
options_list=POWERAPPS_VERSION_OPTIONS,
type=str,
required=False,
help=POWERAPPS_VERSION_HELP)
arg_context.argument(
CLIENT_SECRET,
options_list=CLIENT_SECRET_OPTIONS,
type=str,
required=False,
help=CLIENT_SECRET_HELP)
arg_context.argument(
SETTINGS,
options_list=SETTINGS_OPTIONS,
type=str,
required=False,
help=SETTINGS_HELP)
arg_context.argument(
'overwrite_settings',
options_list=['--overwrite-settings', '-w'],
type=bool,
required=False,
nargs='?',
default=False,
const=True,
help='Overwrite the existing settings file.')
with ArgumentsContext(self, _UPDATE) as arg_context:
arg_context.argument(
ENVIRONMENT,
options_list=ENVIRONMENT_OPTIONS,
type=str,
required=False,
help=ENVIRONMENT_HELP)
arg_context.argument(
API_PROPERTIES,
options_list=API_PROPERTIES_OPTIONS,
type=str,
required=False,
help=API_PROPERTIES_HELP)
arg_context.argument(
API_DEFINITION,
options_list=API_DEFINITION_OPTIONS,
type=str,
required=False,
help=API_DEFINITION_HELP)
arg_context.argument(
ICON,
options_list=ICON_OPTIONS,
type=str,
required=False,
help=ICON_HELP)
arg_context.argument(
SCRIPT,
options_list=SCRIPT_OPTIONS,
type=str,
required=False,
help=SCRIPT_HELP)
arg_context.argument(
CONNECTOR_ID,
options_list=CONNECTOR_ID_OPTIONS,
type=str,
required=False,
help=CONNECTOR_ID_HELP)
arg_context.argument(
POWERAPPS_URL,
options_list=POWERAPPS_URL_OPTIONS,
type=str,
required=False,
help=POWERAPPS_URL_HELP)
arg_context.argument(
POWERAPPS_VERSION,
options_list=POWERAPPS_VERSION_OPTIONS,
type=str,
required=False,
help=POWERAPPS_VERSION_HELP)
arg_context.argument(
CLIENT_SECRET,
options_list=CLIENT_SECRET_OPTIONS,
type=str,
required=False,
help=CLIENT_SECRET_HELP)
arg_context.argument(
SETTINGS,
options_list=SETTINGS_OPTIONS,
type=str,
required=False,
help=SETTINGS_HELP)
with ArgumentsContext(self, _VALIDATE) as arg_context:
arg_context.argument(
API_DEFINITION,
options_list=API_DEFINITION_OPTIONS,
type=str,
required=False,
help=API_DEFINITION_HELP)
arg_context.argument(
POWERAPPS_URL,
options_list=POWERAPPS_URL_OPTIONS,
type=str,
required=False,
help=POWERAPPS_URL_HELP)
arg_context.argument(
POWERAPPS_VERSION,
options_list=POWERAPPS_VERSION_OPTIONS,
type=str,
required=False,
help=POWERAPPS_VERSION_HELP)
arg_context.argument(
SETTINGS,
options_list=SETTINGS_OPTIONS,
type=str,
required=False,
help=SETTINGS_HELP)