Skip to content

Commit

Permalink
fix: configure should use -f
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcase committed Sep 30, 2020
1 parent f971b9d commit 5d98d14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/app/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
8 changes: 4 additions & 4 deletions internal/commands/configure/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d98d14

Please sign in to comment.