Skip to content

Commit dd181db

Browse files
committed
add sync command
1 parent 200575b commit dd181db

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmd/ctrlc/root/sync/sync.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package sync
2+
3+
import (
4+
"github.com/MakeNowJust/heredoc/v2"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
func NewRootCmd() *cobra.Command {
9+
cmd := &cobra.Command{
10+
Use: "sync <integration>",
11+
Short: "Sync resources into Ctrlplane",
12+
Example: heredoc.Doc(`
13+
$ ctrlc sync aws-eks
14+
$ ctrlc sync google-gke
15+
`),
16+
}
17+
18+
return cmd
19+
}

0 commit comments

Comments
 (0)