mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: drop 'template plan' unused command (#9386)
This commit is contained in:
@ -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
|
||||
},
|
||||
}
|
||||
}
|
@ -37,7 +37,6 @@ func (r *RootCmd) templates() *clibase.Cmd {
|
||||
r.templateEdit(),
|
||||
r.templateInit(),
|
||||
r.templateList(),
|
||||
r.templatePlan(),
|
||||
r.templatePush(),
|
||||
r.templateVersions(),
|
||||
r.templateDelete(),
|
||||
|
1
cli/testdata/coder_templates_--help.golden
vendored
1
cli/testdata/coder_templates_--help.golden
vendored
@ -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
|
||||
|
1
docs/cli/templates.md
generated
1
docs/cli/templates.md
generated
@ -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>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>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>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 |
|
||||
|
11
docs/cli/templates_plan.md
generated
11
docs/cli/templates_plan.md
generated
@ -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>
|
||||
```
|
@ -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.",
|
||||
|
Reference in New Issue
Block a user