diff --git a/internal/app/configure.go b/internal/app/configure.go index f08d01f4..77648947 100644 --- a/internal/app/configure.go +++ b/internal/app/configure.go @@ -31,7 +31,7 @@ import ( // ConfigureInput is the input type for the configure command type ConfigureInput struct { - SourceLocation *string `json:"source,omitempty"` + SourceLocation *string `json:"file,omitempty"` Output *printer.OutputPrinter `json:"output,omitempty"` } diff --git a/internal/commands/configure/configure.go b/internal/commands/configure/configure.go index 7c260ef8..7a8df012 100644 --- a/internal/commands/configure/configure.go +++ b/internal/commands/configure/configure.go @@ -70,14 +70,14 @@ func Command() (*cobra.Command, error) { } func addConfig(cs config.ConfigurationSet) error { - if _, err := cs.String("source", "", "File or remote location to use to set the default configuration"); err != nil { - return fmt.Errorf("adding source config item: %w", err) + if _, err := cs.String("file", "", "File or remote location to use to set the default configuration"); err != nil { + return fmt.Errorf("adding file config item: %w", err) } if _, err := cs.String("output", "yaml", "Controls the output format for the result."); err != nil { return fmt.Errorf("adding output config item: %w", err) } - if err := cs.SetShort("source", "s"); err != nil { - return fmt.Errorf("setting shorthand for source config item: %w", err) + if err := cs.SetShort("file", "f"); err != nil { + return fmt.Errorf("setting shorthand for file config item: %w", err) } return nil