MCPcopy
hub / github.com/awslabs/aws-shell / __init__

Method __init__

awsshell/app.py:227–256  ·  view source on GitHub ↗
(self, completer, model_completer, docs,
                 input=None, output=None, popen_cls=None)

Source from the content-addressed store, hash-verified

225 """
226
227 def __init__(self, completer, model_completer, docs,
228 input=None, output=None, popen_cls=None):
229 self.completer = completer
230 self.model_completer = model_completer
231 self.history = InMemoryHistory()
232 self.file_history = FileHistory(build_config_file_path('history'))
233 self._cli = None
234 self._docs = docs
235 self.current_docs = u''
236 self.refresh_cli = False
237 self.key_manager = None
238 self._dot_cmd = DotCommandHandler()
239 self._env = os.environ.copy()
240 self._profile = None
241 self._input = input
242 self._output = output
243
244 if popen_cls is None:
245 popen_cls = subprocess.Popen
246 self._popen_cls = popen_cls
247
248 # These attrs come from the config file.
249 self.config_obj = None
250 self.config_section = None
251 self.enable_vi_bindings = None
252 self.show_completion_columns = None
253 self.show_help = None
254 self.theme = None
255
256 self.load_config()
257
258 def load_config(self):
259 """Load the config from the config file or template."""

Callers

nothing calls this directly

Calls 3

load_configMethod · 0.95
build_config_file_pathFunction · 0.90
DotCommandHandlerClass · 0.85

Tested by

no test coverage detected