-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the manual "execute" customization #188
base: main
Are you sure you want to change the base?
Conversation
71bba8e
to
8aaa356
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #188 +/- ##
==========================================
- Coverage 93.99% 84.76% -9.23%
==========================================
Files 18 18
Lines 3412 3466 +54
==========================================
- Hits 3207 2938 -269
- Misses 132 448 +316
- Partials 73 80 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a68d3d0
to
64561c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now leaving a comment since I still need to think a bit more about this myself.
First of all: I see the addition of a test case for add-group here - is that related to the execute customization improvements? Feels a bit unfitting!
As for the change itself: I still need to think about this, but passing arguments as a list one-by-one feels a bit hm, artificial. It's certainly an option, but I'm thinking that maybe instead we should add a command:
stanza or something where the user could simply execute the whole command to be run? Or maybe run:
? While keeping path:
there and slowly deprecating it (making it only run the command with no arguments). But I'm undecided myself yet. I'm thinking about this this way as imagine running a command that has 6 arguments to be passed - this would not really look nice or readable.
+1 on env though.
I spotted the add-group customization was not tested and I added it. It was a bit careless and I will isolate it in a commit.
While doing it I was convinced that was a common way, but now that you mention it I checked several projects doing this kind of thing (ansible, terraform) and indeed the favored way is to gather everything under a single "command" field. Plus it looks indeed way easier to use. As you mention we could add a "command" field (because it describes better what is expected) and we could redefine |
64561c2
to
b309a3a
Compare
43e1b7c
to
f2b05a7
Compare
f2b05a7
to
ef371fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thank you for the adjustments!
ef371fd
to
ff6dc5c
Compare
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
ff6dc5c
to
64e04cd
Compare
Support args and env variables in the the "execute" customization to make it more useful.
See https://bugs.launchpad.net/ubuntu-image/+bug/2035216