## Description Adds restore commands to the cli for sharepoint. The restore process is only partially functional at this time. Library files that pass auth are able to be restored as expected. However, auth issues (not directly related to these changes) prevent restoration of all library items at this time. ## Type of change - [x] 🌻 Feature ## Issue(s) * #1615 ## Test Plan - [x] 💪 Manual - [x] 💚 E2E
29 lines
525 B
Go
29 lines
525 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
. "github.com/alcionai/corso/src/cli/print"
|
|
"github.com/alcionai/corso/src/cli/utils"
|
|
)
|
|
|
|
var filesCmd = &cobra.Command{
|
|
Use: "files",
|
|
Short: "Generate OneDrive files",
|
|
RunE: handleOneDriveFileFactory,
|
|
}
|
|
|
|
func addOneDriveCommands(cmd *cobra.Command) {
|
|
cmd.AddCommand(filesCmd)
|
|
}
|
|
|
|
func handleOneDriveFileFactory(cmd *cobra.Command, args []string) error {
|
|
Err(cmd.Context(), ErrNotYetImplemeted)
|
|
|
|
if utils.HasNoFlagsAndShownHelp(cmd) {
|
|
return nil
|
|
}
|
|
|
|
return nil
|
|
}
|