Add CLI tool to look through the cache for a specified username

This commit is contained in:
Firepup Sixfifty 2025-02-28 11:33:46 -06:00
parent 7b568d8711
commit ea9bf07b8d
Signed by: Firepup650
SSH key fingerprint: SHA256:in03N+Byhi/nMAIIKKMxbNMskVXULLrovhGkPNFEsdg

12
find.py Normal file
View file

@ -0,0 +1,12 @@
from cache import userMappings
from sys import argv
if len(argv) < 2:
exit("No username specified to lookup")
argv.pop(0)
username = " ".join(argv)
for k, v in userMappings.items():
if username in v:
print(f"Found it! {k} ({v}")