From ecc57268047f20d0cafaab1ffeebae535fa76055 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sat, 29 Feb 2020 14:30:59 +0100 Subject: [PATCH] Adds filter to the root command and updates README --- README.md | 1 + cmd/filter.go | 4 ++++ cmd/root.go | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 0d82b17..4a4c2e5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Usage: Available Commands: add Adds tickets to the campaign + filter Interactively filters the current ticket list help Help about any command init Creates a new campaign in the current directory token Subcommands related to tokens diff --git a/cmd/filter.go b/cmd/filter.go index a84ee42..361ee99 100644 --- a/cmd/filter.go +++ b/cmd/filter.go @@ -1,5 +1,9 @@ package cmd +import ( + "github.com/spf13/cobra" +) + func FilterCmd() *cobra.Command { return &cobra.Command{ Use: "filter", diff --git a/cmd/root.go b/cmd/root.go index cc2e9d9..3b9f2b9 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -15,6 +15,7 @@ func RootCmd() *cobra.Command { cmd.AddCommand( AddCmd(), + FilterCmd(), InitCmd(), TokenCmd(), )