Updates to /cli/restore/sharepoint.go
Issue #2218: Connects CLI for SharePoint restore.
This commit is contained in:
parent
0b7d22581b
commit
156e01b8dd
@ -18,6 +18,8 @@ import (
|
|||||||
var (
|
var (
|
||||||
listItems []string
|
listItems []string
|
||||||
listPaths []string
|
listPaths []string
|
||||||
|
pageFolders []string
|
||||||
|
pages []string
|
||||||
libraryItems []string
|
libraryItems []string
|
||||||
libraryPaths []string
|
libraryPaths []string
|
||||||
site []string
|
site []string
|
||||||
@ -76,6 +78,18 @@ 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 ID",
|
||||||
|
)
|
||||||
|
|
||||||
|
fs.StringSliceVar(
|
||||||
|
&pages,
|
||||||
|
utils.PageItemFN, nil,
|
||||||
|
"Restore site pages by file name(s)",
|
||||||
|
)
|
||||||
|
|
||||||
// sharepoint info flags
|
// sharepoint info flags
|
||||||
|
|
||||||
// fs.StringVar(
|
// fs.StringVar(
|
||||||
@ -131,6 +145,8 @@ func restoreSharePointCmd(cmd *cobra.Command, args []string) error {
|
|||||||
ListPaths: listPaths,
|
ListPaths: listPaths,
|
||||||
LibraryItems: libraryItems,
|
LibraryItems: libraryItems,
|
||||||
LibraryPaths: libraryPaths,
|
LibraryPaths: libraryPaths,
|
||||||
|
PageFolders: pageFolders,
|
||||||
|
Pages: pages,
|
||||||
Sites: site,
|
Sites: site,
|
||||||
WebURLs: weburl,
|
WebURLs: weburl,
|
||||||
// FileCreatedAfter: fileCreatedAfter,
|
// FileCreatedAfter: fileCreatedAfter,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user