package backup import ( "github.com/spf13/cobra" ) // AddCommands attaches all `corso backup * *` commands to the parent. func AddCommands(parent *cobra.Command) { parent.AddCommand(backupCmd) } // The backup category of commands. // `corso backup [] [...]` var backupCmd = &cobra.Command{ Use: "backup", Short: "Backup your application data.", Long: `Backup the data stored in one of your M365 applications.`, Run: handleBackupCmd, Args: cobra.NoArgs, } // Handler for flat calls to `corso backup`. // Produces the same output as `corso backup --help`. func handleBackupCmd(cmd *cobra.Command, args []string) { cmd.Help() }