From 156e01b8dd328d5fb0ed5126cde5df8f97f644d5 Mon Sep 17 00:00:00 2001 From: Danny Adams Date: Sun, 22 Jan 2023 02:12:21 -0500 Subject: [PATCH] Updates to /cli/restore/sharepoint.go Issue #2218: Connects CLI for SharePoint restore. --- src/cli/restore/sharepoint.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/cli/restore/sharepoint.go b/src/cli/restore/sharepoint.go index 1c3a81e89..c21a152ea 100644 --- a/src/cli/restore/sharepoint.go +++ b/src/cli/restore/sharepoint.go @@ -18,6 +18,8 @@ import ( var ( listItems []string listPaths []string + pageFolders []string + pages []string libraryItems []string libraryPaths []string site []string @@ -76,6 +78,18 @@ func addSharePointCommands(cmd *cobra.Command) *cobra.Command { utils.ListItemFN, nil, "Restore list items by ID") + fs.StringSliceVar( + &pageFolders, + utils.PageFN, nil, + "Restore Site pages by SharePoint Site ID", + ) + + fs.StringSliceVar( + &pages, + utils.PageItemFN, nil, + "Restore site pages by file name(s)", + ) + // sharepoint info flags // fs.StringVar( @@ -131,6 +145,8 @@ func restoreSharePointCmd(cmd *cobra.Command, args []string) error { ListPaths: listPaths, LibraryItems: libraryItems, LibraryPaths: libraryPaths, + PageFolders: pageFolders, + Pages: pages, Sites: site, WebURLs: weburl, // FileCreatedAfter: fileCreatedAfter,