MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / write_default_config

Function write_default_config

mssqlcli/config.py:35–42  ·  view source on GitHub ↗
(source, destination, overwrite=False)

Source from the content-addressed store, hash-verified

33
34
35def write_default_config(source, destination, overwrite=False):
36 destination = expanduser(destination)
37 if not overwrite and exists(destination):
38 return
39
40 ensure_dir_exists(destination)
41
42 shutil.copyfile(source, destination)
43
44
45def upgrade_config(config, def_config):

Callers 1

get_configFunction · 0.85

Calls 1

ensure_dir_existsFunction · 0.85

Tested by

no test coverage detected