"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
config: add ReadNonEmptyLine utility function
Nick Craig-Wood262ba28dec90
diff --git a/fs/config/config.go b/fs/config/config.goindex bb636b0e4..d25aabf61 100644--- a/fs/config/config.go+++ b/fs/config/config.go@@ -624,6 +624,16 @@ var ReadLine = func() string {return strings.TrimSpace(line)}+// ReadNonEmptyLine prints prompt and calls Readline until non empty+func ReadNonEmptyLine(prompt string) string {+ result := ""+ for result == "" {+ fmt.Print(prompt)+ result = strings.TrimSpace(ReadLine())+ }+ return result+}+// Command - choose onefunc Command(commands []string) byte {opts := []string{}