Source code for oasislmf.cli.admin

__all__ = [
    'AdminCmd',
    'EnableBashCompleteCmd',
]


from argparse import RawDescriptionHelpFormatter
from .command import OasisBaseCommand, OasisComputationCommand


[docs] class EnableBashCompleteCmd(OasisComputationCommand): """ Adds required command to `.bashrc` Linux or .bash_profile for mac so that Command autocomplete works for oasislmf CLI """
[docs] formatter_class = RawDescriptionHelpFormatter
[docs] computation_name = 'HelperTabComplete'
[docs] class AdminCmd(OasisBaseCommand): """ Admin subcommands:: """ sub_commands = { 'enable-bash-complete': EnableBashCompleteCmd }