chore: drop 'template plan' unused command (#9386)

This commit is contained in:
Steven Masley
2023-08-28 13:33:40 -05:00
committed by GitHub
parent 2167fe16d6
commit fea8813f13
6 changed files with 0 additions and 37 deletions

View File

@ -1,18 +0,0 @@
package cli
import (
"github.com/coder/coder/v2/cli/clibase"
)
func (*RootCmd) templatePlan() *clibase.Cmd {
return &clibase.Cmd{
Use: "plan <directory>",
Middleware: clibase.Chain(
clibase.RequireNArgs(1),
),
Short: "Plan a template push from the current directory",
Handler: func(inv *clibase.Invocation) error {
return nil
},
}
}

View File

@ -37,7 +37,6 @@ func (r *RootCmd) templates() *clibase.Cmd {
r.templateEdit(), r.templateEdit(),
r.templateInit(), r.templateInit(),
r.templateList(), r.templateList(),
r.templatePlan(),
r.templatePush(), r.templatePush(),
r.templateVersions(), r.templateVersions(),
r.templateDelete(), r.templateDelete(),

View File

@ -24,7 +24,6 @@ Templates are written in standard Terraform and describe the infrastructure for
edit Edit the metadata of a template by name. edit Edit the metadata of a template by name.
init Get started with a templated template. init Get started with a templated template.
list List all the templates available for the organization 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. pull Download the latest version of a template to a path.
push Push a new template version from the current directory or as push Push a new template version from the current directory or as
specified by flag specified by flag

1
docs/cli/templates.md generated
View File

@ -40,7 +40,6 @@ Templates are written in standard Terraform and describe the infrastructure for
| [<code>edit</code>](./templates_edit.md) | Edit the metadata of a template by name. | | [<code>edit</code>](./templates_edit.md) | Edit the metadata of a template by name. |
| [<code>init</code>](./templates_init.md) | Get started with a templated template. | | [<code>init</code>](./templates_init.md) | Get started with a templated template. |
| [<code>list</code>](./templates_list.md) | List all the templates available for the organization | | [<code>list</code>](./templates_list.md) | List all the templates available for the organization |
| [<code>plan</code>](./templates_plan.md) | Plan a template push from the current directory |
| [<code>pull</code>](./templates_pull.md) | Download the latest version of a template to a path. | | [<code>pull</code>](./templates_pull.md) | Download the latest version of a template to a path. |
| [<code>push</code>](./templates_push.md) | Push a new template version from the current directory or as specified by flag | | [<code>push</code>](./templates_push.md) | Push a new template version from the current directory or as specified by flag |
| [<code>versions</code>](./templates_versions.md) | Manage different versions of the specified template | | [<code>versions</code>](./templates_versions.md) | Manage different versions of the specified template |

View File

@ -1,11 +0,0 @@
<!-- DO NOT EDIT | GENERATED CONTENT -->
# templates plan
Plan a template push from the current directory
## Usage
```console
coder templates plan <directory>
```

View File

@ -794,11 +794,6 @@
"description": "List all the templates available for the organization", "description": "List all the templates available for the organization",
"path": "cli/templates_list.md" "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", "title": "templates pull",
"description": "Download the latest version of a template to a path.", "description": "Download the latest version of a template to a path.",