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: spo file checkout undo #4926

Closed
milanholemans opened this issue May 25, 2023 · 7 comments
Closed

New command: spo file checkout undo #4926

milanholemans opened this issue May 25, 2023 · 7 comments

Comments

@milanholemans
Copy link
Contributor

Usage

m365 spo file checkout undo [options]

Description

Discards a checked out file

Options

Option Description
-u, --webUrl <webUrl> The URL of the site where the file is located.
-f, --fileUrl [fileUrl] The server- or site-relative URL of the file to retrieve. Specify either fileUrlor fileId but not both.
-i, --fileId [fileId] The UniqueId (GUID) of the file to retrieve. Specify either fileUrl or fileId but not both.
--confirm Don't prompt for confirmation.

Examples

Discards a checked-out file with a specific ID.

m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'

Discards a checked-out file with a specific URL.

m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl'/sites/project-x/documents/Test1.docx'

Default properties

No response

Additional Info

No response

@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR labels May 25, 2023
@milanholemans
Copy link
Contributor Author

@pnp/cli-for-microsoft-365-maintainers, what do you think? I'm kinda unsure about the name.

@martinlingstuyl
Copy link
Contributor

Very nice specs @milanholemans 🤙
The alternative would be to use checkout remove, as that fits with our regular command structure.
But in this instance I see why that would be unclear. I'm ok with deviating from it.

@Jwaegebaert
Copy link
Contributor

I'm also a fan of deviating on this one. Would it be an idea to include a remove alias for this command?

@milanholemans
Copy link
Contributor Author

The only struggle I have is that we have spo file checkout, this command would take the last verb and use it as a group.
While checkout can be both used as a verb and a noun (I guess), I couldn't think of anything better 😄

@milanholemans
Copy link
Contributor Author

Se we can open this one up? 😊

@Jwaegebaert Jwaegebaert added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels May 26, 2023
@MathijsVerbeeck
Copy link
Contributor

Yes please!

@milanholemans
Copy link
Contributor Author

All yours!

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

Successfully merging a pull request may close this issue.

4 participants