2022-08-28 11:21:57 +00:00
|
|
|
// Package test provides the test command.
|
2020-08-08 17:02:18 +00:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/rclone/rclone/cmd"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd.Root.AddCommand(Command)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Command definition for cobra
|
|
|
|
var Command = &cobra.Command{
|
|
|
|
Use: "test <subcommand>",
|
|
|
|
Short: `Run a test command`,
|
|
|
|
Long: `Rclone test is used to run test commands.
|
|
|
|
|
2022-09-20 07:02:27 +00:00
|
|
|
Select which test command you want with the subcommand, eg
|
2020-08-08 17:02:18 +00:00
|
|
|
|
|
|
|
rclone test memory remote:
|
|
|
|
|
|
|
|
Each subcommand has its own options which you can see in their help.
|
|
|
|
|
|
|
|
**NB** Be careful running these commands, they may do strange things
|
|
|
|
so reading their documentation first is recommended.
|
|
|
|
`,
|
2022-11-26 22:40:49 +00:00
|
|
|
Annotations: map[string]string{
|
|
|
|
"versionIntroduced": "v1.55",
|
|
|
|
},
|
2020-08-08 17:02:18 +00:00
|
|
|
}
|