-
Notifications
You must be signed in to change notification settings - Fork 333
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
Extends 'spo list get' command with support for retrieving any default list in a given site #6447
base: main
Are you sure you want to change the base?
Extends 'spo list get' command with support for retrieving any default list in a given site #6447
Conversation
Thanks, we'll have a look at it ASAP. |
@tmaestrini I added the |
@Adam-it Thanks a lot! :) Looking forward to my very first contribution on the M365 cli when this PR gets closed! ;) |
Do you want me to do something on this? Is there anything missing? |
@tmaestrini I don't think there is anything missing. We have a lot of PRs to process but we will try to catch up with this ASAP |
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.
Nice work @tmaestrini, I suggest we make some minor changes.
…ed when no id, title, or url is provided; update tests to reflect changes
…retrieval and check again if the right url was passed
@milanholemans, I guess we're good to go now. Have another review! 🙌 |
@tmaestrini, did you find some time to implement the needed changes? |
Hey @milanholemans, not yet – sorry! Will do the changes mentioned in #5856 (comment) within the next days… |
DefaultDocumentLibrary, change validation of properties
the command documentation
Hey @milanholemans, ready to review? I've implemented the changes for the |
Seems like some test broke @tmaestrini, could you take a look at it? |
Done! Fixed the typo in the options definition… 🤦🏻♂️ Sorry for that. |
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.
Nice work, let's modify a few things before we merge it.
@@ -35,7 +36,7 @@ class SpoListGetCommand extends SpoCommand { | |||
} | |||
|
|||
public get description(): string { | |||
return 'Gets information about the specific list'; | |||
return 'Gets information about the specific list or returns information about the default list in a site'; |
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.
Let's not modify the description.
@@ -54,7 +55,8 @@ class SpoListGetCommand extends SpoCommand { | |||
title: (!(!args.options.title)).toString(), | |||
url: (!(!args.options.url)).toString(), | |||
properties: (!(!args.options.properties)).toString(), | |||
withPermissions: typeof args.options.withPermissions !== 'undefined' | |||
withPermissions: typeof args.options.withPermissions !== 'undefined', | |||
default: typeof args.options.default !== 'undefined' |
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.
default: typeof args.options.default !== 'undefined' | |
default: !!args.options.default |
: Server- or site-relative URL of the list. Specify either `id`, `title`,`url` or `default` but not multiple. | ||
|
||
`--default` | ||
: Set if you want to return the default list from the site. Specify either `id`, `title`, `url` or `default` 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.
: Set if you want to return the default list from the site. Specify either `id`, `title`, `url` or `default` but not multiple. | |
: Set to retrieve the default list from the site. Specify either `id`, `title`, `url`, or `default` but not multiple. |
Get the default document library located in the specified site. | ||
|
||
```sh | ||
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x |
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.
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x | |
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x --default |
Get information about the default (document) located in the specified site. | ||
|
||
```sh | ||
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x --default |
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.
Let's not use the same example twice.
Hi @tmaestrini, just checking if you had some time to look at my feedback yet. No problem if you need a couple more weeks. |
Hi @milanholemans, thanks for asking. |
Sure no problem! Thanks for letting us know. |
Closes #5856.
This PR substitutes PR #6445