Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nicodecleyre
Copy link
Contributor

Closes #6259

@milanholemans
Copy link
Contributor

Thank you for the contribution @nicodecleyre. Could you fix the workflow failure?

@martinlingstuyl martinlingstuyl self-assigned this Dec 13, 2024
Copy link
Contributor

@martinlingstuyl martinlingstuyl left a 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!

docs/docs/cmd/pp/website/website-get.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/pp/website/website-get.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/pp/website/website-get.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/pp/website/website-get.mdx Outdated Show resolved Hide resolved
src/m365/pp/commands/website/website-get.ts Outdated Show resolved Hide resolved
src/m365/pp/commands/website/website-get.ts Outdated Show resolved Hide resolved
@martinlingstuyl martinlingstuyl marked this pull request as draft December 13, 2024 13:07
@nicodecleyre nicodecleyre marked this pull request as ready for review December 25, 2024 11:26
Copy link
Contributor

@martinlingstuyl martinlingstuyl left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
: 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.`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
message: `Either url, id or name is required, but not multiple.`
message: `Specify either url, id or name, but not multiple.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command: m365 pp website get
3 participants