-
Notifications
You must be signed in to change notification settings - Fork 6
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
add cdn operations #460
add cdn operations #460
Conversation
Let's also add the changes to the changelog, as well as a bats test suite, this looks good! |
) | ||
|
||
func Create() *core.Command { | ||
cmd := core.NewCommand(context.Background(), nil, core.CommandBuilder{ |
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.
Is there a reason not to use NewCommandWithJsonProperties
?
The user might not know exactly what json we expect here for --routing-rules
.
NewCommandWithJsonProperties adds two flags --json-properties
and --json-properties-example
. The latter if set, it prints an example json (which for example could be piped to a .json file), and exits, so the user can use that as a sort of guide
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.
JsonProperties is kind of vague. Having the custom name is more unambiguous. We can have a routing-rules example if we want.
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.
sure, then let's do that
) | ||
|
||
func Create() *core.Command { | ||
cmd := core.NewCommand(context.Background(), nil, core.CommandBuilder{ |
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 believe it might actually be more appropriate to have the create
command use a json properties file to create the object. From what I can tell, the routing rules have quite a complex structure and it might be easier for the user to just use a properties file.
Quality Gate passedIssues Measures |
What does this fix or implement?
Checklist
feat:
/fix:
/doc:
/test:
/refactor:
)