From dd181dbd67c6675d48e70bf7ce17736cbbe6ca46 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Sun, 24 Nov 2024 14:21:55 -0500 Subject: [PATCH] add sync command --- cmd/ctrlc/root/sync/sync.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cmd/ctrlc/root/sync/sync.go diff --git a/cmd/ctrlc/root/sync/sync.go b/cmd/ctrlc/root/sync/sync.go new file mode 100644 index 0000000..58a71eb --- /dev/null +++ b/cmd/ctrlc/root/sync/sync.go @@ -0,0 +1,19 @@ +package sync + +import ( + "github.com/MakeNowJust/heredoc/v2" + "github.com/spf13/cobra" +) + +func NewRootCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "sync ", + Short: "Sync resources into Ctrlplane", + Example: heredoc.Doc(` + $ ctrlc sync aws-eks + $ ctrlc sync google-gke + `), + } + + return cmd +}