An example of how to make an out of tree backend for rclone
This commit is contained in:
16
rclone.go
Normal file
16
rclone.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Sync files and directories to and from local and remote object stores
|
||||
//
|
||||
// Nick Craig-Wood <nick@craig-wood.com>
|
||||
package main
|
||||
|
||||
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
|
||||
_ "github.com/rclone/rclone_out_of_tree_example/backend/ram" // your out of tree backend
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd.Main()
|
||||
}
|
||||
Reference in New Issue
Block a user