From 572d303e96451e197223cd22591314620db5fee2 Mon Sep 17 00:00:00 2001 From: --global Date: Fri, 6 Dec 2024 17:04:31 +0100 Subject: [PATCH] chore: hide import and export commands --- cmd/export.go | 5 +++-- cmd/import.go | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/export.go b/cmd/export.go index 0fb1d1edc..be1fb0937 100644 --- a/cmd/export.go +++ b/cmd/export.go @@ -24,8 +24,9 @@ func NewExportCmd(flags *flags.GlobalFlags) *cobra.Command { GlobalFlags: flags, } exportCmd := &cobra.Command{ - Use: "export [flags] [workspace-path|workspace-name]", - Short: "Exports a workspace configuration", + Use: "export [flags] [workspace-path|workspace-name]", + Short: "Exports a workspace configuration", + Hidden: true, RunE: func(_ *cobra.Command, args []string) error { ctx := context.Background() devPodConfig, err := config.LoadConfig(cmd.Context, cmd.Provider) diff --git a/cmd/import.go b/cmd/import.go index a4dd15885..fc136e284 100644 --- a/cmd/import.go +++ b/cmd/import.go @@ -38,9 +38,10 @@ func NewImportCmd(flags *flags.GlobalFlags) *cobra.Command { GlobalFlags: flags, } importCmd := &cobra.Command{ - Use: "import", - Short: "Imports a workspace configuration", - Args: cobra.NoArgs, + Use: "import", + Short: "Imports a workspace configuration", + Args: cobra.NoArgs, + Hidden: true, RunE: func(_ *cobra.Command, args []string) error { ctx := context.Background() devPodConfig, err := config.LoadConfig(cmd.Context, cmd.Provider)