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

Function configure_and_update_options

mssqlcli/main.py:76–88  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

74
75
76def configure_and_update_options(options):
77 if options.dac_connection and options.server and not \
78 options.server.lower().startswith("admin:"):
79 options.server = "admin:" + options.server
80
81 if not options.integrated_auth:
82 if not options.username:
83 options.username = input(u'Username (press enter for sa):') or u'sa'
84 if not options.password:
85 pw = getpass.getpass()
86 if pw is not None:
87 pw = pw.replace('\r', '').replace('\n', '')
88 options.password = pw
89
90
91def create_config_dir_for_first_use():

Callers 1

run_cli_withFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected