# Copyright 2021, Guillermo Adrián Molina
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import subprocess
import argparse
import pathlib

from aim.util.argparse import get_subparser_aliases
from aim.cli.variable.list import List
from aim.cli.variable.show import Show
from aim.cli.variable.remove import Remove

class Variable:
    comands = {
        'ls': List, 
        'show': Show, 
        'rm': Remove
    }

    @staticmethod
    def init_parser(parent_subparsers):
        parent_parser = argparse.ArgumentParser(add_help=False)
        parser = parent_subparsers.add_parser('variable',
            parents=[parent_parser],
            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
            description='Manage variables',
            help='Manage variables')

        subparser = parser.add_subparsers(
            dest='subcommand',
            metavar='COMMAND',
            required=True)

        for subcommand in Variable.comands.values():
            subcommand.init_parser(subparser, parent_parser)
        
        Variable.aliases = get_subparser_aliases(parser, Variable.comands)

    def __init__(self, inventory, options):
        command = Variable.aliases[options.subcommand]
        command(inventory, options)
ee6d5509e0908e30dfad6e9b808465b2310c27eb
<mask token>

<mask token>


class Variable:
    <mask token>

    @staticmethod
    def init_parser(parent_subparsers):
        parent_parser = argparse.ArgumentParser(add_help=False)
        parser = parent_subparsers.add_parser('variable', parents=[
            parent_parser], formatter_class=argparse.
            ArgumentDefaultsHelpFormatter, description='Manage variables',
            help='Manage variables')
        subparser = parser.add_subparsers(dest='subcommand', metavar=
            'COMMAND', required=True)
        for subcommand in Variable.comands.values():
            subcommand.init_parser(subparser, parent_parser)
        Variable.aliases = get_subparser_aliases(parser, Variable.comands)

    def __init__(self, inventory, options):
        command = Variable.aliases[options.subcommand]
        command(inventory, options)

<mask token>


class Variable:
    comands = {'ls': List, 'show': Show, 'rm': Remove}

    @staticmethod
    def init_parser(parent_subparsers):
        parent_parser = argparse.ArgumentParser(add_help=False)
        parser = parent_subparsers.add_parser('variable', parents=[
            parent_parser], formatter_class=argparse.
            ArgumentDefaultsHelpFormatter, description='Manage variables',
            help='Manage variables')
        subparser = parser.add_subparsers(dest='subcommand', metavar=
            'COMMAND', required=True)
        for subcommand in Variable.comands.values():
            subcommand.init_parser(subparser, parent_parser)
        Variable.aliases = get_subparser_aliases(parser, Variable.comands)

    def __init__(self, inventory, options):
        command = Variable.aliases[options.subcommand]
        command(inventory, options)

import subprocess
import argparse
import pathlib
from aim.util.argparse import get_subparser_aliases
from aim.cli.variable.list import List
from aim.cli.variable.show import Show
from aim.cli.variable.remove import Remove


class Variable:
    comands = {'ls': List, 'show': Show, 'rm': Remove}

    @staticmethod
    def init_parser(parent_subparsers):
        parent_parser = argparse.ArgumentParser(add_help=False)
        parser = parent_subparsers.add_parser('variable', parents=[
            parent_parser], formatter_class=argparse.
            ArgumentDefaultsHelpFormatter, description='Manage variables',
            help='Manage variables')
        subparser = parser.add_subparsers(dest='subcommand', metavar=
            'COMMAND', required=True)
        for subcommand in Variable.comands.values():
            subcommand.init_parser(subparser, parent_parser)
        Variable.aliases = get_subparser_aliases(parser, Variable.comands)

    def __init__(self, inventory, options):
        command = Variable.aliases[options.subcommand]
        command(inventory, options)

# Copyright 2021, Guillermo Adrián Molina
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import subprocess
import argparse
import pathlib

from aim.util.argparse import get_subparser_aliases
from aim.cli.variable.list import List
from aim.cli.variable.show import Show
from aim.cli.variable.remove import Remove

class Variable:
    comands = {
        'ls': List, 
        'show': Show, 
        'rm': Remove
    }

    @staticmethod
    def init_parser(parent_subparsers):
        parent_parser = argparse.ArgumentParser(add_help=False)
        parser = parent_subparsers.add_parser('variable',
            parents=[parent_parser],
            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
            description='Manage variables',
            help='Manage variables')

        subparser = parser.add_subparsers(
            dest='subcommand',
            metavar='COMMAND',
            required=True)

        for subcommand in Variable.comands.values():
            subcommand.init_parser(subparser, parent_parser)
        
        Variable.aliases = get_subparser_aliases(parser, Variable.comands)

    def __init__(self, inventory, options):
        command = Variable.aliases[options.subcommand]
        command(inventory, options)