1
0
mirror of https://github.com/rclone/rclone.git synced 2025-08-10 06:09:44 +02:00

convmv: fix spurious "error running command echo" on Windows

Before this change the help for convmv was generated by running the
examples each time rclone started up. Unfortunately this involved
running the echo command which did not work on Windows.

This pre-generates the help into `transform.md` and embeds it. It can
be re-generated with `go generate` which is a better solution.

See: https://forum.rclone.org/t/invoke-of-1-70-0-complains-of-echo-not-found/51618
This commit is contained in:
Nick Craig-Wood
2025-06-18 13:51:44 +01:00
parent b064cc2116
commit 4280ec75cc
6 changed files with 276 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ var commandDefinition = &cobra.Command{
Long: strings.ReplaceAll(`
convmv supports advanced path name transformations for converting and renaming files and directories by applying prefixes, suffixes, and other alterations.
`+transform.SprintList()+`
`+transform.Help()+`
Multiple transformations can be used in sequence, applied in the order they are specified on the command line.