summaryrefslogtreecommitdiffstats
path: root/commands/genchromastyles.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-09 20:42:08 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-11 09:48:56 +0200
commite26a8b242a6434117d089a0799238add7025dbf4 (patch)
treef6578e4eab781a641b17522dc0d89dd1bbd2a347 /commands/genchromastyles.go
parent2a2c9838671b5401331d20f8c72e2b934fe34e8d (diff)
commands: Make the list commands non-global
See #4598
Diffstat (limited to 'commands/genchromastyles.go')
-rw-r--r--commands/genchromastyles.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/genchromastyles.go b/commands/genchromastyles.go
index 66a2b50a6..6d7b8b5cb 100644
--- a/commands/genchromastyles.go
+++ b/commands/genchromastyles.go
@@ -22,6 +22,10 @@ import (
"github.com/spf13/cobra"
)
+var (
+ _ cmder = (*genChromaStyles)(nil)
+)
+
type genChromaStyles struct {
style string
highlightStyle string
@@ -29,6 +33,10 @@ type genChromaStyles struct {
cmd *cobra.Command
}
+func (c *genChromaStyles) getCommand() *cobra.Command {
+ return c.cmd
+}
+
// TODO(bep) highlight
func createGenChromaStyles() *genChromaStyles {
g := &genChromaStyles{