Updates to /cli/restore/sharepoint.go
Addition of logic for sharepoint page restore.
This commit is contained in:
parent
6d615810cd
commit
9933a3bb07
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user