mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 08:54:10 +01:00
20 lines
503 B
Go
20 lines
503 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()
|
||
|
}
|