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:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user