Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: fix markdownlint issues in backend command generated output

albertony2443cb284e94
diff --git a/cmd/backend/backend.go b/cmd/backend/backend.go
index 4c5591051..744fd1a6d 100644
--- a/cmd/backend/backend.go
+++ b/cmd/backend/backend.go
@@ -156,9 +156,11 @@ func showHelp(fsInfo *fs.RegInfo) error {
fmt.Printf("## Backend commands\n\n")
fmt.Printf(`Here are the commands specific to the %s backend.
-Run them with
+Run them with:
- rclone backend COMMAND remote:
+`+"```console"+`
+rclone backend COMMAND remote:
+`+"```"+`
The help below will explain what arguments each command takes.
@@ -172,7 +174,7 @@ These can be run on a running backend using the rc command
for _, cmd := range cmds {
fmt.Printf("### %s\n\n", cmd.Name)
fmt.Printf("%s\n\n", cmd.Short)
- fmt.Printf(" rclone backend %s remote: [options] [<arguments>+]\n\n", cmd.Name)
+ fmt.Printf("```console\nrclone backend %s remote: [options] [<arguments>+]\n```\n\n", cmd.Name)
if cmd.Long != "" {
fmt.Printf("%s\n\n", cmd.Long)
}
diff --git a/cmd/help.go b/cmd/help.go
index 20a09f0ad..73fc108a7 100644
--- a/cmd/help.go
+++ b/cmd/help.go
@@ -343,12 +343,12 @@ func showBackend(name string) {
fmt.Printf("- Examples:\n")
}
for _, ex := range opt.Examples {
- fmt.Printf(" - %s\n", quoteString(ex.Value))
+ fmt.Printf(" - %s\n", quoteString(ex.Value))
for line := range strings.SplitSeq(ex.Help, "\n") {
- fmt.Printf(" - %s\n", line)
+ fmt.Printf(" - %s\n", line)
}
if ex.Provider != "" {
- fmt.Printf(" - Provider: %s\n", ex.Provider)
+ fmt.Printf(" - Provider: %s\n", ex.Provider)
}
}
}