MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / cmd

Function cmd

tests/src/util/__main__.py:41–60  ·  view source on GitHub ↗
(args: Args)

Source from the content-addressed store, hash-verified

39
40
41def cmd(args: Args):
42 match args.command:
43 case "e":
44 if not args.content:
45 args.content = input("content: ")
46 print(FERNET.encrypt(args.content.encode()).decode())
47
48 case "d":
49 if not args.content:
50 args.content = input("content: ")
51 print(FERNET.decrypt(args.content.encode()).decode())
52
53 case "keygen":
54 print(gen_keystr())
55
56 case "vercel":
57 print("\n".join(vercel_auth()))
58
59 case "addmask":
60 mask_all()
61
62
63if __name__ == "__main__":

Callers 1

mainFunction · 0.85

Calls 5

vercel_authFunction · 0.90
mask_allFunction · 0.90
gen_keystrFunction · 0.85
decodeMethod · 0.80
encodeMethod · 0.80

Tested by

no test coverage detected