1
0
mirror of https://github.com/rclone/rclone.git synced 2025-11-23 21:44:49 +02:00

docs: fix markdownlint issues in backend command generated output

This commit is contained in:
albertony
2025-11-02 12:49:10 +01:00
parent 0f3aa17fb6
commit 2443cb284e
2 changed files with 8 additions and 6 deletions

View File

@@ -156,9 +156,11 @@ func showHelp(fsInfo *fs.RegInfo) error {
fmt.Printf("## Backend commands\n\n") fmt.Printf("## Backend commands\n\n")
fmt.Printf(`Here are the commands specific to the %s backend. 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. 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 { for _, cmd := range cmds {
fmt.Printf("### %s\n\n", cmd.Name) fmt.Printf("### %s\n\n", cmd.Name)
fmt.Printf("%s\n\n", cmd.Short) 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 != "" { if cmd.Long != "" {
fmt.Printf("%s\n\n", cmd.Long) fmt.Printf("%s\n\n", cmd.Long)
} }

View File

@@ -343,12 +343,12 @@ func showBackend(name string) {
fmt.Printf("- Examples:\n") fmt.Printf("- Examples:\n")
} }
for _, ex := range opt.Examples { 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") { for line := range strings.SplitSeq(ex.Help, "\n") {
fmt.Printf(" - %s\n", line) fmt.Printf(" - %s\n", line)
} }
if ex.Provider != "" { if ex.Provider != "" {
fmt.Printf(" - Provider: %s\n", ex.Provider) fmt.Printf(" - Provider: %s\n", ex.Provider)
} }
} }
} }