diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-10 19:16:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 09:50:19 +0200 |
commit | e8d6ca9531d19e4e898c57d77d2fd627ea38ade0 (patch) | |
tree | fb38c183444396520810d05deffed2699fc0e7ff /commands/new_theme.go | |
parent | 4d32f2fa8969f368b088dc9bcedb45f2c986cb27 (diff) |
commands: Add CLI tests
See #4598
Diffstat (limited to 'commands/new_theme.go')
-rw-r--r-- | commands/new_theme.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/new_theme.go b/commands/new_theme.go index 64220a8fc..3b00cb1df 100644 --- a/commands/new_theme.go +++ b/commands/new_theme.go @@ -32,10 +32,11 @@ var _ cmder = (*newThemeCmd)(nil) type newThemeCmd struct { *baseCmd + hugoBuilderCommon } func newNewThemeCmd() *newThemeCmd { - ccmd := &newThemeCmd{newBaseCmd(nil)} + ccmd := &newThemeCmd{baseCmd: newBaseCmd(nil)} cmd := &cobra.Command{ Use: "theme [name]", @@ -53,7 +54,7 @@ as you see fit.`, } func (n *newThemeCmd) newTheme(cmd *cobra.Command, args []string) error { - c, err := initializeConfig(false, nil, n, nil) + c, err := initializeConfig(false, &n.hugoBuilderCommon, n, nil) if err != nil { return err |