-
Notifications
You must be signed in to change notification settings - Fork 902
feat(cli): provide parameter values via command line #8898
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
30e99a5
Use rich parameter flags
mtojek 61e9785
WIP
mtojek 5d5e588
make update-golden-files
mtojek f739c8d
make gen
mtojek e622f4f
fix
mtojek c8cbfe1
Build options
mtojek f340dae
Pull build options from command line
mtojek 4a96845
refactor
mtojek 29d0eab
rename
mtojek 9af782c
fixes
mtojek 17bc078
Merge branch 'main' into 8782-build-option
mtojek db15c67
Merge branch 'main' into 8782-build-option
mtojek 34c71bf
WIP
mtojek fd79380
fix
mtojek 6e854a3
verifyConstraints
mtojek 751fcf3
Fix?
mtojek c1aeae0
Resolver implemented
mtojek 91d601d
revent: cli stat
mtojek 9e05ce6
Fix: restart, create
mtojek f18d320
fix
mtojek 47d4dd6
fix lint
mtojek 2a903d8
Fix: old OptionalParameterAdded
mtojek 66ce556
info
mtojek 5763ef2
Fix: lint
mtojek eedeed6
Merge branch 'main' into 8782-build-option
mtojek 02a6b1d
naming convention
mtojek 177127c
More fixes
mtojek 1fbc594
Merge branch 'main' into 8782-build-option
mtojek 0f1b564
and cannot
mtojek 7c5a520
more formal
mtojek 2e017b4
more formal
mtojek 1d4c0e0
start_test.go
mtojek 34016f4
update_test.go
mtojek 1d23f09
restart_test.go
mtojek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
More fixes
- Loading branch information
commit 177127c85728ddeb3c5dd258650132310ea68e8c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we check len 0 here? Wouldn't it be possible for some build options to be provided but not this one? Should are check the contents instead?
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.
This condition only applies to ephemeral/one-time build parameters, hence
tvp.Ephemeral
.!pr.promptBuildOptions
means that the user didn't use the flag--build-options
to input manually values for next build options, andlen(pr.buildOptions) == 0
means that they didn't provide them via--build-option key=value
.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.
I understand the reasoning for the other checks, however my thinking is that, say there are two ephemeral values. The user providers only one of them via
--build-option
. Thenlen(pr.buildOptions) == 1
even though currenttvp
wasn't provided. Does that make sense?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.
#9019