1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 09:33:36 +00:00

convmv: update help text - FIXME WIP

need a help line for each conversion mode
This commit is contained in:
Nick Craig-Wood
2025-02-24 09:58:38 +00:00
parent d08543070a
commit e14109e1b4
2 changed files with 39 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ package convmv
import (
"fmt"
"strings"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/lib/encoder"
@@ -59,14 +60,17 @@ func (e example) output() string {
}
// go run ./ convmv --help
func sprintExamples() string {
s := "Examples: \n\n"
func sprintExamples(out *strings.Builder) {
_, _ = fmt.Fprintf(out, `### Examples:
Here are some examples of rclone convmv in action.
`)
for _, e := range examples {
s += fmt.Sprintf("```\n%s\n", e.command())
s += fmt.Sprintf("// Output: %s\n```\n\n", e.output())
_, _ = fmt.Fprintf(out, "```\n%s\n", e.command())
_, _ = fmt.Fprintf(out, "// Output: %s\n```\n\n", e.output())
}
Opt = ConvOpt{} // reset
return s
}
/* func sprintAllCharmapExamples() string {