cmdtest.go 500 B

12345678910111213141516171819
  1. // Package cmdtest creates a testable interface to rclone main
  2. //
  3. // The interface is used to perform end-to-end test of
  4. // commands, flags, environment variables etc.
  5. package cmdtest
  6. // The rest of this file is a 1:1 copy from rclone.go
  7. import (
  8. _ "github.com/rclone/rclone/backend/all" // import all backends
  9. "github.com/rclone/rclone/cmd"
  10. _ "github.com/rclone/rclone/cmd/all" // import all commands
  11. _ "github.com/rclone/rclone/lib/plugin" // import plugins
  12. )
  13. func main() {
  14. cmd.Main()
  15. }