Add CLI tool to look through the cache for a specified username
This commit is contained in:
parent
7b568d8711
commit
ea9bf07b8d
1 changed files with 12 additions and 0 deletions
12
find.py
Normal file
12
find.py
Normal 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}")
|
Loading…
Reference in a new issue