An example of how to make an out of tree backend for rclone

This commit is contained in:
Nick Craig-Wood
2025-05-07 11:52:26 +01:00
commit 198a408101
9 changed files with 1902 additions and 0 deletions

16
rclone.go Normal file
View 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()
}