MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / do_save

Method do_save

console/modules/configCommand.py:39–48  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

37
38 @with_argparser(parser)
39 def do_save(self, args):
40 try:
41 Settings.save_settings(args.filename, override=False)
42 except MapXploreException as e:
43 if not e.isError:
44 self._ask_overwrite(args.filename, 'n')
45 else:
46 AnsiPrint.print_error(e)
47 except Exception as ex:
48 AnsiPrint.print_error(ex)
49
50
51 @with_argparser(parser)

Callers

nothing calls this directly

Calls 3

_ask_overwriteMethod · 0.95
save_settingsMethod · 0.80
print_errorMethod · 0.45

Tested by

no test coverage detected