test.go 704 B

1234567891011121314151617181920212223242526272829303132
  1. // Package test provides the test command.
  2. package test
  3. import (
  4. "github.com/rclone/rclone/cmd"
  5. "github.com/spf13/cobra"
  6. )
  7. func init() {
  8. cmd.Root.AddCommand(Command)
  9. }
  10. // Command definition for cobra
  11. var Command = &cobra.Command{
  12. Use: "test <subcommand>",
  13. Short: `Run a test command`,
  14. Long: `Rclone test is used to run test commands.
  15. Select which test command you want with the subcommand, eg
  16. rclone test memory remote:
  17. Each subcommand has its own options which you can see in their help.
  18. **NB** Be careful running these commands, they may do strange things
  19. so reading their documentation first is recommended.
  20. `,
  21. Annotations: map[string]string{
  22. "versionIntroduced": "v1.55",
  23. },
  24. }