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

Function register_alias

new_hire.py:10–15  ·  view source on GitHub ↗

Appends text to 'employee_registry.txt'

(alias)

Source from the content-addressed store, hash-verified

8from utility import ROOT_DIR
9
10def register_alias(alias):
11 """
12 Appends text to 'employee_registry.txt'
13 """
14 with open(os.path.join(ROOT_DIR, 'employee_registry.txt'), 'a') as f:
15 f.write('{0} was here!\t{1}\n'.format(alias, date.today()).expandtabs(50))
16
17if __name__ == "__main__":
18 if len(sys.argv) != 2:

Callers 1

new_hire.pyFile · 0.85

Calls 2

writeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected