mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter CLI: Error if no files are found
This commit is contained in:
parent
e5cde71fc1
commit
0cdccf5f54
1 changed files with 4 additions and 0 deletions
|
@ -262,6 +262,10 @@ class BlueprintApp:
|
||||||
print(Colors.CLEAR)
|
print(Colors.CLEAR)
|
||||||
panic = True
|
panic = True
|
||||||
|
|
||||||
|
if len(input_files) == 0:
|
||||||
|
print(f"{Colors.RED}No Blueprint files found")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
def would_be(verb):
|
def would_be(verb):
|
||||||
return verb if opts.fix else f"would be {verb}"
|
return verb if opts.fix else f"would be {verb}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue