From 5e31689a4a796483c0466e4afcf8fd1e3b9fb92d Mon Sep 17 00:00:00 2001 From: Daniel Menet Date: Tue, 7 Jan 2020 13:50:28 +0100 Subject: [PATCH] cli: fixed parameter issue --- cli.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli.go b/cli.go index 749c1a7..f589503 100644 --- a/cli.go +++ b/cli.go @@ -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) @@ -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) @@ -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) @@ -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) @@ -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()) }