Make canonical place for all fs in fs/all/all.go

This commit is contained in:
Nick Craig-Wood 2016-01-03 14:12:01 +00:00
parent 0c81439bc3
commit 3423de65fa
4 changed files with 19 additions and 27 deletions

View File

@ -133,7 +133,7 @@ Research
Getting going Getting going
* Create `remote/remote.go` (copy this from a similar fs) * Create `remote/remote.go` (copy this from a similar fs)
* Add your fs to the imports in `rclone.go` * Add your fs to the imports in `fs/all/all.go`
Unit tests Unit tests
@ -144,7 +144,6 @@ Unit tests
Integration tests Integration tests
* Add your fs to the imports in `fs/operations_test.go`
* Add your fs to `fs/test_all.go` * Add your fs to `fs/test_all.go`
* Make sure integration tests pass with * Make sure integration tests pass with
* `cd fs` * `cd fs`

16
fs/all/all.go Normal file
View File

@ -0,0 +1,16 @@
package all
import (
// Active file systems
_ "github.com/ncw/rclone/amazonclouddrive"
_ "github.com/ncw/rclone/b2"
_ "github.com/ncw/rclone/drive"
_ "github.com/ncw/rclone/dropbox"
_ "github.com/ncw/rclone/googlecloudstorage"
_ "github.com/ncw/rclone/hubic"
_ "github.com/ncw/rclone/local"
_ "github.com/ncw/rclone/onedrive"
_ "github.com/ncw/rclone/s3"
_ "github.com/ncw/rclone/swift"
_ "github.com/ncw/rclone/yandex"
)

View File

@ -17,20 +17,8 @@ import (
"time" "time"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
_ "github.com/ncw/rclone/fs/all" // import all fs
"github.com/ncw/rclone/fstest" "github.com/ncw/rclone/fstest"
// Active file systems
_ "github.com/ncw/rclone/amazonclouddrive"
_ "github.com/ncw/rclone/b2"
_ "github.com/ncw/rclone/drive"
_ "github.com/ncw/rclone/dropbox"
_ "github.com/ncw/rclone/googlecloudstorage"
_ "github.com/ncw/rclone/hubic"
_ "github.com/ncw/rclone/local"
_ "github.com/ncw/rclone/onedrive"
_ "github.com/ncw/rclone/s3"
_ "github.com/ncw/rclone/swift"
_ "github.com/ncw/rclone/yandex"
) )
// Globals // Globals

View File

@ -15,18 +15,7 @@ import (
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
// Active file systems _ "github.com/ncw/rclone/fs/all" // import all fs
_ "github.com/ncw/rclone/amazonclouddrive"
_ "github.com/ncw/rclone/b2"
_ "github.com/ncw/rclone/drive"
_ "github.com/ncw/rclone/dropbox"
_ "github.com/ncw/rclone/googlecloudstorage"
_ "github.com/ncw/rclone/hubic"
_ "github.com/ncw/rclone/local"
_ "github.com/ncw/rclone/onedrive"
_ "github.com/ncw/rclone/s3"
_ "github.com/ncw/rclone/swift"
_ "github.com/ncw/rclone/yandex"
) )
// Globals // Globals