"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
gendocs: refactor and add logging of skipped command docs
albertonyfa1d7da27274
diff --git a/cmd/gendocs/gendocs.go b/cmd/gendocs/gendocs.goindex 5e779a744..7f2aa0b7b 100644--- a/cmd/gendocs/gendocs.go+++ b/cmd/gendocs/gendocs.go@@ -170,17 +170,18 @@ rclone.org website.`,name := filepath.Base(path)cmd, ok := commands[name]if !ok {- switch runtime.GOOS {- case "darwin":- if name == "rclone_mount.md" {- return nil // won't exist without -tags cmount+ switch name {+ case "rclone_mount.md":+ switch runtime.GOOS {+ case "darwin", "windows":+ fs.Logf(nil, "Skipping docs for command not available without the cmount build tag: %v", name)+ return nil}- case "windows":- switch name {- case "rclone_mount.md":- return nil // won't exist without -tags cmount- case "rclone_nfsmount.md", "rclone_serve_nfs.md":- return nil // not supported+ case "rclone_nfsmount.md", "rclone_serve_nfs.md":+ switch runtime.GOOS {+ case "windows":+ fs.Logf(nil, "Skipping docs for command not supported on %v: %v", runtime.GOOS, name)+ return nil}}return fmt.Errorf("didn't find command for %q", name)