diff --git a/internal/cli/action.go b/internal/cli/action.go index 7fb1bf4..d409532 100644 --- a/internal/cli/action.go +++ b/internal/cli/action.go @@ -16,11 +16,11 @@ type action struct { } // Show help by default -func (a *action) RunHelp(c *cli.Context) error { +func (a *action) runHelp(c *cli.Context) error { return cli.ShowAppHelp(c) } -func (a *action) RunInstall(c *cli.Context) error { +func (a *action) runInstall(c *cli.Context) error { a.getFlags(c) a.log("start %s\n", installCommand) @@ -36,7 +36,7 @@ func (a *action) RunInstall(c *cli.Context) error { return nil } -func (a *action) RunUpdate(c *cli.Context) error { +func (a *action) runUpdate(c *cli.Context) error { a.getFlags(c) a.log("start %s\n", updateCommand) @@ -52,7 +52,7 @@ func (a *action) RunUpdate(c *cli.Context) error { return nil } -func (a *action) RunClean(c *cli.Context) error { +func (a *action) runClean(c *cli.Context) error { a.getFlags(c) a.log("start %s\n", cleanCommand) @@ -68,7 +68,7 @@ func (a *action) RunClean(c *cli.Context) error { return nil } -func (a *action) RunCompare(c *cli.Context) error { +func (a *action) runCompare(c *cli.Context) error { a.getFlags(c) a.log("start %s\n", compareCommand) diff --git a/internal/cli/app.go b/internal/cli/app.go index 426aab3..8e5fdb7 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -75,7 +75,7 @@ func NewApp() *App { Usage: dryRunUsage, }, }, - Action: a.RunInstall, + Action: a.runInstall, }, { Name: updateCommand, @@ -91,7 +91,7 @@ func NewApp() *App { Usage: dryRunUsage, }, }, - Action: a.RunUpdate, + Action: a.runUpdate, }, { Name: cleanCommand, @@ -107,7 +107,7 @@ func NewApp() *App { Usage: dryRunUsage, }, }, - Action: a.RunClean, + Action: a.runClean, }, { Name: compareCommand, @@ -119,10 +119,10 @@ func NewApp() *App { Usage: verboseUsage, }, }, - Action: a.RunCompare, + Action: a.runCompare, }, }, - Action: a.RunHelp, + Action: a.runHelp, } return &App{