(self, args, section=None)
| 11 | @with_default_category('Config Category') |
| 12 | class ConfigCommandSet(CommandSet, ArgumentsManager): |
| 13 | def __init__(self, args, section=None) -> None: |
| 14 | super().__init__() |
| 15 | if hasattr(cmd2.Cmd,'do_set'): |
| 16 | delattr(cmd2.Cmd, 'do_set') |
| 17 | self._section = section |
| 18 | if section is None: |
| 19 | self._config = Settings.setting |
| 20 | else: |
| 21 | self._section = section |
| 22 | self._config = Settings.setting[section] |
| 23 | |
| 24 | def _ask_overwrite(self, filename, choose='N'): |
| 25 | if choose.lower() != 'y': |
nothing calls this directly
no outgoing calls
no test coverage detected