Hi all
I'm not yet sure it's a good idee... but I would like to add a flag like --apply-changes to my Dagger call like f.i.
dagger call --source-directory=/app/src/python --apply-changes black
The purpose is to replace all my custom scripts and use Dagger everywhere i.e. on my computer and too, on my GitLab CI.
On the CI; no discussion, a formatting tool like Python Black should run in a dry-run mode. Show the differences and exit. For sure.
On my computer, right now, I've thus plenty of make commands like make black, make php-cs-fixer, make shellformat, ...
With the idea of abandoning these scripts and just using Dagger for everything, I wonder if it wouldn't be a good idea to add an --apply-changes flag that I could use locally.
That flag will be False by default (I didn't have find a way to add a default value ; the doc https://docs.dagger.io/api/arguments/#directories-and-files only gives examples for Files or Directories)
Is this a good idea ? I've mixed feelings but yeah, I think it'll be better to maintain two code base (Dagger and ton of scripts)
Do you have any ideas that could help me achieve this goal?
Many thanks!