Refactor
This commit is contained in:
parent
30bd30e038
commit
71c8ea7bbd
41 changed files with 375 additions and 284 deletions
19
Shell Scripts/python/new-uuid.py
Normal file
19
Shell Scripts/python/new-uuid.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from argparse import ArgumentParser
|
||||
from uuid import uuid4
|
||||
|
||||
from utils import copy_to_clipboard
|
||||
|
||||
|
||||
def main(args):
|
||||
if args.copy_to_clipboard:
|
||||
copy_to_clipboard(str(uuid4()))
|
||||
print("Copied to clipboard!")
|
||||
else:
|
||||
print(str(uuid4()))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = ArgumentParser(prog="new-uuid")
|
||||
parser.add_argument("-c", "--copy-to-clipboard", action="store_true")
|
||||
args = parser.parse_args()
|
||||
main(args)
|
||||
Loading…
Reference in a new issue