corso/src/cmd/factory/onedrive.go
Keepers 39f9c7f50f
add script boilerplate for mock data generation (#1161)
## Description

Introduces a `factory` script to help devs generate
fake m365 data in bulk for testing purposes.  Only
boilerplate at this time.  Any TODO's or not-yet-
implemented statuses are present as placeholders
alone, without official deadlines.

## Type of change

- [x] 🤖 Test

## Issue(s)

* #902

## Test Plan

- [x] 💪 Manual
2022-10-14 17:19:40 +00:00

29 lines
531 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(parent *cobra.Command) {
parent.AddCommand(filesCmd)
}
func handleOneDriveFileFactory(cmd *cobra.Command, args []string) error {
Err(cmd.Context(), ErrNotYetImplemeted)
if utils.HasNoFlagsAndShownHelp(cmd) {
return nil
}
return nil
}