MCPcopy Index your code
hub / github.com/dbcli/pgcli / write_default_config

Function write_default_config

pgcli/config.py:37–44  ·  view source on GitHub ↗
(source, destination, overwrite=False)

Source from the content-addressed store, hash-verified

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

Callers 1

get_configFunction · 0.85

Calls 1

ensure_dir_existsFunction · 0.85

Tested by

no test coverage detected