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