Skip to content

Commit

Permalink
cli: fixed parameter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Menet committed Jan 7, 2020
1 parent ffc55d4 commit 5e31689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ func NewApp() *App {
return a
}

func (a App) debug(out string) {
func (a *App) debug(out string) {
if a.cfg.rootDebug {
fmt.Fprint(os.Stderr, out)
}
}

func (a App) graphCmd(cmd *cobra.Command, args []string) {
func (a *App) graphCmd(cmd *cobra.Command, args []string) {
workspaces, err := GetWorkspaces(a.cfg.rootBase, a.cfg.rootIgnorePatterns)
if err != nil {
log.Fatal(err)
Expand All @@ -115,7 +115,7 @@ func (a App) graphCmd(cmd *cobra.Command, args []string) {
fmt.Printf("\n/*\n Use 'solaris ... | fdp -Tsvg > out.svg' or\n similar to generate a vector visualization\n*/\n")
}

func (a App) lintCmd(cmd *cobra.Command, args []string) {
func (a *App) lintCmd(cmd *cobra.Command, args []string) {
workspaces, err := GetWorkspaces(a.cfg.rootBase, a.cfg.rootIgnorePatterns)
if err != nil {
log.Fatal(err)
Expand All @@ -130,7 +130,7 @@ func (a App) lintCmd(cmd *cobra.Command, args []string) {
}
}

func (a App) jsonCmd(cmd *cobra.Command, args []string) {
func (a *App) jsonCmd(cmd *cobra.Command, args []string) {
workspaces, err := GetWorkspaces(a.cfg.rootBase, a.cfg.rootIgnorePatterns)
if err != nil {
log.Fatal(err)
Expand All @@ -149,7 +149,7 @@ func (a App) jsonCmd(cmd *cobra.Command, args []string) {
fmt.Println(string(out))
}

func (a App) planCmd(cmd *cobra.Command, args []string) {
func (a *App) planCmd(cmd *cobra.Command, args []string) {
workspaces, err := GetWorkspaces(a.cfg.rootBase, a.cfg.rootIgnorePatterns)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -209,6 +209,6 @@ func (a App) planCmd(cmd *cobra.Command, args []string) {

}

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 5e31689

Please sign in to comment.