コード例 #1
0
 def get_parser(self, prog_name):
     parser = super(VariablesList, self).get_parser(prog_name)
     parser = UploadJSONTemplate.extend_parser(self, parser)
     parser.add_argument('-A', '--all',
                         dest='show_all',
                         action='store_false',
                         help='Also show empty variables')
     return parser
コード例 #2
0
    def get_parser(self, prog_name):
        parser = super(SystemsCreate, self).get_parser(prog_name)
        parser = UploadJSONTemplate.extend_parser(self, parser)

        sg = parser.add_argument_group('SSH/SFTP Authentication Options')
        sg.add_argument('--login-username',
                        dest='login_username',
                        metavar='USERNAME',
                        type=str,
                        help='Username for SSH login on the System')
        sg.add_argument('--login-public-key',
                        dest='login_public_key',
                        metavar='FILE',
                        type=str,
                        help='Public key for SSH login on the System')
        sg.add_argument('--login-private-key',
                        dest='login_private_key',
                        metavar='FILE',
                        type=str,
                        help='Private key for SSH login on the System')
        sg.add_argument('--login-password',
                        dest='login_password',
                        metavar='PASSWORD',
                        type=str,
                        help='Password for SSH login on the System')

        sg.add_argument('--storage-username',
                        dest='storage_username',
                        metavar='USERNAME',
                        type=str,
                        help='Username for SFTP storage on the System')
        sg.add_argument('--storage-public-key',
                        dest='storage_public_key',
                        metavar='FILE',
                        type=str,
                        help='Public key for SFTP storage on the System')
        sg.add_argument('--storage-private-key',
                        dest='storage_private_key',
                        metavar='FILE',
                        type=str,
                        help='Private key for SFTP storage on the System')
        sg.add_argument('--storage-password',
                        dest='storage_password',
                        metavar='PASSWORD',
                        type=str,
                        help='Password for SFTP storage on the System')

        # Add in key arguments
        return parser
コード例 #3
0
 def get_parser(self, prog_name):
     parser = super(AppsCreate, self).get_parser(prog_name)
     parser = WorkingDirectoryArg.extend_parser(self, parser)
     parser = UploadJSONTemplate.extend_parser(self, parser)
     return parser
コード例 #4
0
 def get_parser(self, prog_name):
     parser = super(JobsSubmit, self).get_parser(prog_name)
     parser = UploadJSONTemplate.extend_parser(self, parser)
     return parser