From ffca3a5fb399e922b08f101f9a4118f0757180ca Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 16 Mar 2023 16:28:22 -0500 Subject: [PATCH] fix: remove noop `templates plan` command (#6617) Co-authored-by: Colin Adler --- cli/templateplan.go | 16 ---------------- cli/templates.go | 1 - cli/testdata/coder_templates_--help.golden | 1 - docs/cli/coder_templates.md | 1 - docs/cli/coder_templates_plan.md | 11 ----------- docs/manifest.json | 4 ---- 6 files changed, 34 deletions(-) delete mode 100644 cli/templateplan.go delete mode 100644 docs/cli/coder_templates_plan.md diff --git a/cli/templateplan.go b/cli/templateplan.go deleted file mode 100644 index 4703308e8f..0000000000 --- a/cli/templateplan.go +++ /dev/null @@ -1,16 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" -) - -func templatePlan() *cobra.Command { - return &cobra.Command{ - Use: "plan ", - Args: cobra.MinimumNArgs(1), - Short: "Plan a template push from the current directory", - RunE: func(cmd *cobra.Command, args []string) error { - return nil - }, - } -} diff --git a/cli/templates.go b/cli/templates.go index 58bd1bdde1..a972da4aea 100644 --- a/cli/templates.go +++ b/cli/templates.go @@ -39,7 +39,6 @@ func templates() *cobra.Command { templateEdit(), templateInit(), templateList(), - templatePlan(), templatePush(), templateVersions(), templateDelete(), diff --git a/cli/testdata/coder_templates_--help.golden b/cli/testdata/coder_templates_--help.golden index cdbb0cda2e..ae3208fa97 100644 --- a/cli/testdata/coder_templates_--help.golden +++ b/cli/testdata/coder_templates_--help.golden @@ -27,7 +27,6 @@ Commands: edit Edit the metadata of a template by name. init Get started with a templated template. list List all the templates available for the organization - plan Plan a template push from the current directory pull Download the latest version of a template to a path. push Push a new template version from the current directory or as specified by flag versions Manage different versions of the specified template diff --git a/docs/cli/coder_templates.md b/docs/cli/coder_templates.md index 3c8cda1b41..b797ccf864 100644 --- a/docs/cli/coder_templates.md +++ b/docs/cli/coder_templates.md @@ -35,7 +35,6 @@ coder templates [flags] | [edit](./coder_templates_edit) | Edit the metadata of a template by name. | | [init](./coder_templates_init) | Get started with a templated template. | | [list](./coder_templates_list) | List all the templates available for the organization | -| [plan](./coder_templates_plan) | Plan a template push from the current directory | | [pull](./coder_templates_pull) | Download the latest version of a template to a path. | | [push](./coder_templates_push) | Push a new template version from the current directory or as specified by flag | | [versions](./coder_templates_versions) | Manage different versions of the specified template | diff --git a/docs/cli/coder_templates_plan.md b/docs/cli/coder_templates_plan.md deleted file mode 100644 index bc822cc7fb..0000000000 --- a/docs/cli/coder_templates_plan.md +++ /dev/null @@ -1,11 +0,0 @@ - - -# coder templates plan - -Plan a template push from the current directory - -## Usage - -```console -coder templates plan [flags] -``` diff --git a/docs/manifest.json b/docs/manifest.json index dea571b079..8107f74951 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -602,10 +602,6 @@ "title": "templates list", "path": "./cli/coder_templates_list.md" }, - { - "title": "templates plan", - "path": "./cli/coder_templates_plan.md" - }, { "title": "templates pull", "path": "./cli/coder_templates_pull.md"