Load the config from the config file or template.
(self)
| 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.""" |