Compare commits

...

1 Commits

Author SHA1 Message Date
Danny Adams
9933a3bb07 Updates to /cli/restore/sharepoint.go
Addition of logic for sharepoint page restore.
2023-01-21 01:12:05 -05:00

View File

@ -20,6 +20,8 @@ var (
listPaths []string listPaths []string
libraryItems []string libraryItems []string
libraryPaths []string libraryPaths []string
pageFolders []string
page []string
site []string site []string
weburl []string weburl []string
) )
@ -76,6 +78,17 @@ func addSharePointCommands(cmd *cobra.Command) *cobra.Command {
utils.ListItemFN, nil, utils.ListItemFN, nil,
"Restore list items by ID") "Restore list items by ID")
fs.StringSliceVar(
&pageFolders,
utils.PageFN, nil,
"Restore site pages by SharePoint site name or url")
fs.StringSliceVar(
&page,
utils.PageItemFN, nil,
"Restore site page by ID",
)
// sharepoint info flags // sharepoint info flags
// fs.StringVar( // fs.StringVar(
@ -131,6 +144,8 @@ func restoreSharePointCmd(cmd *cobra.Command, args []string) error {
ListPaths: listPaths, ListPaths: listPaths,
LibraryItems: libraryItems, LibraryItems: libraryItems,
LibraryPaths: libraryPaths, LibraryPaths: libraryPaths,
PageFolders: pageFolders,
Pages: page,
Sites: site, Sites: site,
WebURLs: weburl, WebURLs: weburl,
// FileCreatedAfter: fileCreatedAfter, // FileCreatedAfter: fileCreatedAfter,