mirror of
https://github.com/mez-0/citadel
synced 2026-06-08 15:52:56 +00:00
17 lines
386 B
Python
17 lines
386 B
Python
import argparse
|
|
import json
|
|
|
|
from citadel.ember import analyse_file_with_ember
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description="Predict the file type of a file")
|
|
parser.add_argument("file", type=str, help="The file to predict")
|
|
args = parser.parse_args()
|
|
|
|
result = analyse_file_with_ember(args.file)
|
|
print(json.dumps(result.to_dict(), indent=4))
|
|
|
|
|
|
main()
|