Skip to content

Commit

Permalink
cli: fixed issue where 'context' could not read in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Menet committed Jan 7, 2020
1 parent 33148ec commit f3a17b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (a *App) deduceCmd(cmd *cobra.Command, args []string) {
}
}

func (a App) contextsCmd(cmd *cobra.Command, args []string) {
func (a *App) contextsCmd(cmd *cobra.Command, args []string) {
in, errs := NewAlterverse(a.cfg.contextsIn, a.cfg.deduceIgnore)
exitOnErr(errs...)
inData, err := in.Files()
Expand Down Expand Up @@ -156,9 +156,9 @@ func (a App) contextsCmd(cmd *cobra.Command, args []string) {
}
d, err := yaml.Marshal(&contexts)
exitOnErr(err)
fmt.Printf("---g \n%s\n\n", string(d))
fmt.Printf("--- \n%s\n\n", string(d))
}

func (a App) versionCmd(cmd *cobra.Command, args []string) {
func (a *App) versionCmd(cmd *cobra.Command, args []string) {
fmt.Println(versionInfo())
}

0 comments on commit f3a17b9

Please sign in to comment.