Formatter CLI: Error if no files are found

This commit is contained in:
Gregor Niehl 2023-12-17 16:54:54 +01:00 committed by James Westman
parent e5cde71fc1
commit 0cdccf5f54

View file

@ -262,6 +262,10 @@ class BlueprintApp:
print(Colors.CLEAR)
panic = True
if len(input_files) == 0:
print(f"{Colors.RED}No Blueprint files found")
sys.exit(1)
def would_be(verb):
return verb if opts.fix else f"would be {verb}"