-
Notifications
You must be signed in to change notification settings - Fork 328
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
New command: m365 pp website get, Closes #6259 #6486
base: main
Are you sure you want to change the base?
Conversation
Thank you for the contribution @nicodecleyre. Could you fix the workflow failure? |
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.
Couple of comments @nicodecleyre, but on the whole this looks good!
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 @nicodecleyre! I'll merge it sometime soon!
: The WebSite Id (GUID) of the website to retrieve. Specify either `url`, `name` or `id`. | ||
|
||
`-e, --environmentName <environmentName>` | ||
: The name of the environment from which to retrieve Power Pages website from. |
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.
: The name of the environment from which to retrieve Power Pages website from. | |
: The name of the environment from which to retrieve the Power Pages website. |
public getRefinedSchema(schema: typeof options): z.ZodEffects<any> | undefined { | ||
return schema | ||
.refine(options => [options.url, options.id, options.name].filter(x => x !== undefined).length === 1, { | ||
message: `Either url, id or name is required, but not multiple.` |
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.
message: `Either url, id or name is required, but not multiple.` | |
message: `Specify either url, id or name, but not multiple.` |
Closes #6259