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

Method load_config

awsshell/app.py:258–270  ·  view source on GitHub ↗

Load the config from the config file or template.

(self)

Source from the content-addressed store, hash-verified

256 self.load_config()
257
258 def load_config(self):
259 """Load the config from the config file or template."""
260 config = Config()
261 self.config_obj = config.load('awsshellrc')
262 self.config_section = self.config_obj['aws-shell']
263 self.model_completer.match_fuzzy = self.config_section.as_bool(
264 'match_fuzzy')
265 self.enable_vi_bindings = self.config_section.as_bool(
266 'enable_vi_bindings')
267 self.show_completion_columns = self.config_section.as_bool(
268 'show_completion_columns')
269 self.show_help = self.config_section.as_bool('show_help')
270 self.theme = self.config_section['theme']
271
272 def save_config(self):
273 """Save the config to the config file."""

Callers 3

__init__Method · 0.95
test_config_offMethod · 0.80
test_config_onMethod · 0.80

Calls 2

loadMethod · 0.95
ConfigClass · 0.90

Tested by 2

test_config_offMethod · 0.64
test_config_onMethod · 0.64