summaryrefslogtreecommitdiffstats
path: root/commands/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/check.go')
-rw-r--r--commands/check.go19
1 files changed, 16 insertions, 3 deletions
diff --git a/commands/check.go b/commands/check.go
index e5dbc1ffa..5812bb6aa 100644
--- a/commands/check.go
+++ b/commands/check.go
@@ -17,7 +17,20 @@ import (
"github.com/spf13/cobra"
)
-var checkCmd = &cobra.Command{
- Use: "check",
- Short: "Contains some verification checks",
+var _ cmder = (*checkCmd)(nil)
+
+type checkCmd struct {
+ cmd *cobra.Command
+}
+
+func newCheckCmd() *checkCmd {
+ return &checkCmd{cmd: &cobra.Command{
+ Use: "check",
+ Short: "Contains some verification checks",
+ },
+ }
+}
+
+func (c *checkCmd) getCommand() *cobra.Command {
+ return c.cmd
}