mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
parent
7ce033a89d
commit
8a69ccbb00
16 changed files with 86 additions and 71 deletions
|
@ -202,12 +202,13 @@ func (c *genCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, args [
|
|||
return nil
|
||||
}
|
||||
|
||||
func (c *genCommand) WithCobraCommand(cmd *cobra.Command) error {
|
||||
func (c *genCommand) Init(cd *simplecobra.Commandeer) error {
|
||||
cmd := cd.CobraCommand
|
||||
cmd.Short = "A collection of several useful generators."
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *genCommand) Init(cd, runner *simplecobra.Commandeer) error {
|
||||
func (c *genCommand) PreRun(cd, runner *simplecobra.Commandeer) error {
|
||||
c.rootCmd = cd.Root.Command.(*rootCommand)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue