2020-12-02 13:57:56 +00:00
|
|
|
"""
|
|
|
|
The base class for cli_parsers
|
|
|
|
"""
|
2024-06-11 04:32:49 +00:00
|
|
|
|
2020-12-02 13:57:56 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
2022-05-26 17:18:57 +00:00
|
|
|
|
2020-12-02 13:57:56 +00:00
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
|
|
class CliParserBase:
|
2022-04-06 15:30:29 +00:00
|
|
|
"""The base class for cli parsers
|
2020-12-02 13:57:56 +00:00
|
|
|
Provides a _debug function to normalize parser debug output
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, task_args, task_vars, debug):
|
|
|
|
self._debug = debug
|
|
|
|
self._task_args = task_args
|
|
|
|
self._task_vars = task_vars
|