github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/cmdtest/cmdtest.go (about) 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 7 // The rest of this file is a 1:1 copy from rclone.go 8 9 import ( 10 _ "github.com/rclone/rclone/backend/all" // import all backends 11 "github.com/rclone/rclone/cmd" 12 _ "github.com/rclone/rclone/cmd/all" // import all commands 13 _ "github.com/rclone/rclone/lib/plugin" // import plugins 14 ) 15 16 func main() { 17 cmd.Main() 18 }