2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 19:55:27 +00:00

Tweak command

This commit is contained in:
Asterix\Oliver
2025-06-14 10:43:25 +10:00
parent 33ec77e588
commit c5dc40441f
3 changed files with 7 additions and 7 deletions

View File

@ -39,6 +39,9 @@ def android(c):
c.run("flutter build appbundle --release --no-tree-shake-icons")
@task
def format(c):
def format(c, analyze=False, dry_run=False):
"""Format Dart code."""
c.run("dart format --output=none")
c.run(f"dart format .{" --output=none" if dry_run else ''}")
if analyze:
c.run("flutter analyze")