From 0efefd02c62013c21781f523364b41eb7c9c4dbf Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 4 Mar 2020 22:26:04 +0100 Subject: [PATCH] Add structure to the sync command --- cmd/root.go | 1 + cmd/sync.go | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 cmd/sync.go diff --git a/cmd/root.go b/cmd/root.go index 597eb50..d4773b1 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,6 +20,7 @@ func RootCmd() *cobra.Command { StandaloneCmd(), TokenCmd(), PublishCmd(), + SyncCmd(), ) return cmd diff --git a/cmd/sync.go b/cmd/sync.go new file mode 100644 index 0000000..ccd8196 --- /dev/null +++ b/cmd/sync.go @@ -0,0 +1,18 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +func SyncCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "sync", + Short: "Synchronizes the status of the tickets with remote providers", + Args: cobra.NoArgs, + Run: syncCmdF, + } + + return cmd +} + +func syncCmdF(_ *cobra.Command, _ []string) {}