-
Notifications
You must be signed in to change notification settings - Fork 5
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
extract act options from cli command #117
extract act options from cli command #117
Conversation
Done, please squash merge if you want to go with this change |
Can you open issues to track this?
Sounds good. I will make updates there.
Good point. I have disabled |
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.
@ChristopherHX I have some suggested changes here: ChristopherHX#1
for options of type bool, we should not have a free text input and use empty string "" or "false" as only selectable values
In that PR, I simply removed all bool type descriptions. I don't think we need any free text input or selectable values as simply having the option added and checked in the Settings
view should be enough to mean it is being used.
- default value, is a shell escaping issue in your extension works in double quotes[]
from cobra for some array options seems to be invalid
I am noticing some issues with the stringArray
type options as well. How are the stringArray
type options supposed to be passed in exactly?
No you need false as well, look at the
String array should be passed like In act you can repeat any option, one of them (I guess the last one) wins |
* Refactor get options logic * Remove bool type options from having descriptions * Force option description to be uppercase Signed-off-by: Sanjula Ganepola <[email protected]>
I reverted the tested check boxes, since this is no longer the case... |
Fixed this by removing the default value for Created a new fr issue as #129, for subtrees. |
* this removes default values like `[]` regardless if they are sent
I am going to merge this and then make some additional fixes in a new PR. Thank you |
β Changes
Call
--list-options
and use this for the add option dialog if the command succeeds.π Checklist
See options not available in nektos/act listed now using this flag as the cli tools knows them
Some problems I see are
""
or"false"
as only selectable values--list-options
if it succeeds (e.g. marked in red / ignored / show an error or whatever)For your mentioned descriptions updates please just file a PR to change these here: https://github.com/nektos/act/blob/9c7f103bb39f11430f58c1a68d5629a42e6d56a1/cmd/root.go#L47-L106
It's unusual for me to see the Merge Commit merge strategy, we commonly use squash merge to only have one commit per pr in the default branch which is signed by GitHub instead of preserving unsigned commits