Skip to content

Commit

Permalink
Remove dry-run flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sdassow committed Nov 25, 2024
1 parent 10d57ee commit edf95e5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/fyne/internal/commands/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ func Translate() *cli.Command {
Description: "Recursively scans the current or given directories/files for \n" +
"translation strings, and creates or updates the translations file.",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "dry-run",
Aliases: []string{"n"},
Usage: "Scan without storing the results.",
},
&cli.BoolFlag{
Name: "imports",
Aliases: []string{"i"},
Expand All @@ -53,7 +48,6 @@ func Translate() *cli.Command {
},
Action: func(ctx *cli.Context) error {
opts := translateOpts{
DryRun: ctx.Bool("dry-run"),
Imports: ctx.Bool("imports"),
Update: ctx.Bool("update"),
Verbose: ctx.Bool("verbose"),
Expand Down Expand Up @@ -135,7 +129,6 @@ func findFilesExt(dir, ext string) ([]string, error) {
}

type translateOpts struct {
DryRun bool
Imports bool
Update bool
Verbose bool
Expand Down Expand Up @@ -185,10 +178,6 @@ func updateTranslationsFile(file string, files []string, opts *translateOpts) er
return nil
}

if opts.DryRun {
return nil
}

return writeTranslationsFile(b, file)
}

Expand Down

0 comments on commit edf95e5

Please sign in to comment.