summaryrefslogtreecommitdiffstats
path: root/commands/xcommand_template.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/xcommand_template.go')
-rw-r--r--commands/xcommand_template.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/xcommand_template.go b/commands/xcommand_template.go
index 6bb507a5e..7ceeffb19 100644
--- a/commands/xcommand_template.go
+++ b/commands/xcommand_template.go
@@ -66,13 +66,14 @@ func (c *templateCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, a
return nil
}
-func (c *templateCommand) WithCobraCommand(cmd *cobra.Command) error {
+func (c *templateCommand) Init(cd *simplecobra.Commandeer) error {
+ cmd := cd.CobraCommand
cmd.Short = "Print the site configuration"
cmd.Long = `Print the site configuration, both default and custom settings.`
return nil
}
-func (c *templateCommand) Init(cd, runner *simplecobra.Commandeer) error {
+func (c *templateCommand) PreRun(cd, runner *simplecobra.Commandeer) error {
c.r = cd.Root.Command.(*rootCommand)
return nil
}