"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: fix display of config choices with empty help text
albertonyc504d970174a
diff --git a/fs/config/ui.go b/fs/config/ui.goindex 17741f566..67093f69b 100644--- a/fs/config/ui.go+++ b/fs/config/ui.go@@ -111,14 +111,14 @@ func Choose(what string, kind string, choices, help []string, defaultValue strinattributes := []string{terminal.HiRedFg, terminal.HiGreenFg}for i, text := range choices {var lines []string- if help != nil {+ if help != nil && help[i] != "" {parts := strings.Split(help[i], "\n")lines = append(lines, parts...)+ lines = append(lines, fmt.Sprintf("(%s)", text))}- lines = append(lines, fmt.Sprintf("(%s)", text))pos := i + 1terminal.WriteString(attributes[i%len(attributes)])- if len(lines) == 1 {+ if len(lines) == 0 {fmt.Printf("%2d > %s\n", pos, text)} else {mid := (len(lines) - 1) / 2