mirror of
https://github.com/rclone/rclone.git
synced 2024-12-21 11:06:55 +08:00
19 lines
500 B
Go
19 lines
500 B
Go
|
// Package cmdtest creates a testable interface to rclone main
|
||
|
//
|
||
|
// The interface is used to perform end-to-end test of
|
||
|
// commands, flags, environment variables etc.
|
||
|
package cmdtest
|
||
|
|
||
|
// The rest of this file is a 1:1 copy from rclone.go
|
||
|
|
||
|
import (
|
||
|
_ "github.com/rclone/rclone/backend/all" // import all backends
|
||
|
"github.com/rclone/rclone/cmd"
|
||
|
_ "github.com/rclone/rclone/cmd/all" // import all commands
|
||
|
_ "github.com/rclone/rclone/lib/plugin" // import plugins
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
cmd.Main()
|
||
|
}
|