From 630fc0c63d5a5d0662ab6f1c0bbbaef14d193a32 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 28 Aug 2023 10:32:21 -0500 Subject: [PATCH] chore: drop 'template plan' unused command --- cli/templateplan.go | 18 ------------------ cli/templates.go | 1 - cli/testdata/coder_templates_--help.golden | 1 - docs/cli/templates.md | 1 - docs/cli/templates_plan.md | 11 ----------- docs/manifest.json | 5 ----- 6 files changed, 37 deletions(-) delete mode 100644 cli/templateplan.go delete mode 100644 docs/cli/templates_plan.md diff --git a/cli/templateplan.go b/cli/templateplan.go deleted file mode 100644 index 76710a046d36a..0000000000000 --- a/cli/templateplan.go +++ /dev/null @@ -1,18 +0,0 @@ -package cli - -import ( - "github.com/coder/coder/v2/cli/clibase" -) - -func (*RootCmd) templatePlan() *clibase.Cmd { - return &clibase.Cmd{ - Use: "plan ", - Middleware: clibase.Chain( - clibase.RequireNArgs(1), - ), - Short: "Plan a template push from the current directory", - Handler: func(inv *clibase.Invocation) error { - return nil - }, - } -} diff --git a/cli/templates.go b/cli/templates.go index 7f5f16a4558c9..7ded6a7e5ee2b 100644 --- a/cli/templates.go +++ b/cli/templates.go @@ -37,7 +37,6 @@ func (r *RootCmd) templates() *clibase.Cmd { r.templateEdit(), r.templateInit(), r.templateList(), - r.templatePlan(), r.templatePush(), r.templateVersions(), r.templateDelete(), diff --git a/cli/testdata/coder_templates_--help.golden b/cli/testdata/coder_templates_--help.golden index 0bcc6c7978df7..352695e26fb57 100644 --- a/cli/testdata/coder_templates_--help.golden +++ b/cli/testdata/coder_templates_--help.golden @@ -24,7 +24,6 @@ Templates are written in standard Terraform and describe the infrastructure for 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 diff --git a/docs/cli/templates.md b/docs/cli/templates.md index ed459f2d70d82..4426625363ed7 100644 --- a/docs/cli/templates.md +++ b/docs/cli/templates.md @@ -40,7 +40,6 @@ Templates are written in standard Terraform and describe the infrastructure for | [edit](./templates_edit.md) | Edit the metadata of a template by name. | | [init](./templates_init.md) | Get started with a templated template. | | [list](./templates_list.md) | List all the templates available for the organization | -| [plan](./templates_plan.md) | Plan a template push from the current directory | | [pull](./templates_pull.md) | Download the latest version of a template to a path. | | [push](./templates_push.md) | Push a new template version from the current directory or as specified by flag | | [versions](./templates_versions.md) | Manage different versions of the specified template | diff --git a/docs/cli/templates_plan.md b/docs/cli/templates_plan.md deleted file mode 100644 index 06ed7d56c507d..0000000000000 --- a/docs/cli/templates_plan.md +++ /dev/null @@ -1,11 +0,0 @@ - - -# templates plan - -Plan a template push from the current directory - -## Usage - -```console -coder templates plan -``` diff --git a/docs/manifest.json b/docs/manifest.json index 38c6103286346..8c18bb26ad9f5 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -794,11 +794,6 @@ "description": "List all the templates available for the organization", "path": "cli/templates_list.md" }, - { - "title": "templates plan", - "description": "Plan a template push from the current directory", - "path": "cli/templates_plan.md" - }, { "title": "templates pull", "description": "Download the latest version of a template to a path.",