def load_command_table()

in src/backup-explorer-cli/bkpctl/commands.py [0:0]


    def load_command_table(self, args): #pylint: disable=too-many-statements
        """Load all Service Fabric commands"""

        with CommandSuperGroup(__name__, self, 'bkpctl.custom_backup_explorer#{}'
                               ) as super_group: 
            with super_group.group('query') as group:
                group.command('metadata', 'query_metadata')
                group.command('collection', 'query_collection')
            with super_group.group('get') as group:
                group.command('transactions', 'get_transactions')
            with super_group.group('update') as group:
                group.command('collection', 'add_transaction')
            with super_group.group('backup') as group:
                group.command('partition', 'trigger_backup')
            
        with ArgumentsContext(self, 'query') as ac:
            ac.argument('name', options_list=['--name', '-n'])
            
        with ArgumentsContext(self, 'update') as ac:
            ac.argument('collectiontype', options_list=['--collectiontype', '-ct'])
            ac.argument('operation', options_list=['--operation', '-op'])
            ac.argument('collection', options_list=['--collection', '-c'])
            ac.argument('partition_id', options_list=['--partitionId', '-p'])
            ac.argument('etag', options_list=['--etag', '-e'])
            ac.argument('key', options_list=['--key', '-k'])
            ac.argument('value', options_list=['--value', '-v'])

        with ArgumentsContext(self, 'backup') as ac:
            ac.argument('typeOfBackup', options_list=['--type', '-t'])
            ac.argument('path', options_list=['--path', '-p'])
            ac.argument('timeout', options_list=['--timeout', '-to'])
            ac.argument('cancellationInSecs', options_list=['--cancellationAfter', '-ca'])

        return OrderedDict(self.command_table)