Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Add the field parameter for the dynamic payload in CLI #411

Merged
merged 4 commits into from
Apr 17, 2022

Conversation

noahingh
Copy link
Member

@noahingh noahingh commented Apr 11, 2022

CLI provides a way that a user can post the request with the payload. If the user does not specify a value for the field, the default value is used automatically.

@noahingh noahingh added enhancement New feature or request component: cli This issue or pull request is related to the features of CLI labels Apr 11, 2022
@noahingh noahingh linked an issue Apr 11, 2022 that may be closed by this pull request
Comment on lines +34 to +38
&cli.StringSliceFlag{
Name: "field",
Aliases: []string{"f"},
Usage: "The pair of key and value to add to the payload. The format must be <key>=<value>.",
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ex. -f foo=bar -f baz=quz

@noahingh noahingh marked this pull request as ready for review April 17, 2022 02:45
@noahingh noahingh merged commit e83f69b into main Apr 17, 2022
@noahingh noahingh deleted the dynamic-payload-cli branch April 17, 2022 03:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: cli This issue or pull request is related to the features of CLI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enables CLI to post dyanmic_payload when deploying
1 participant