feat: un-export action funcs

main
sudo pacman -Syu 2021-05-05 16:42:59 +07:00
parent 31736cfb1e
commit 2d23d9e98d
2 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -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{