mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: deprecate template create command in favor of template push (#11390)
This commit is contained in:
@ -35,6 +35,7 @@ func (r *RootCmd) templateEdit() *clibase.Cmd {
|
||||
allowUserAutostop bool
|
||||
requireActiveVersion bool
|
||||
deprecationMessage string
|
||||
disableEveryone bool
|
||||
)
|
||||
client := new(codersdk.Client)
|
||||
|
||||
@ -162,6 +163,7 @@ func (r *RootCmd) templateEdit() *clibase.Cmd {
|
||||
AllowUserAutostop: allowUserAutostop,
|
||||
RequireActiveVersion: requireActiveVersion,
|
||||
DeprecationMessage: deprecated,
|
||||
DisableEveryoneGroupAccess: disableEveryone,
|
||||
}
|
||||
|
||||
_, err = client.UpdateTemplateMeta(inv.Context(), template.ID, req)
|
||||
@ -292,6 +294,13 @@ func (r *RootCmd) templateEdit() *clibase.Cmd {
|
||||
Value: clibase.BoolOf(&requireActiveVersion),
|
||||
Default: "false",
|
||||
},
|
||||
{
|
||||
Flag: "private",
|
||||
Description: "Disable the default behavior of granting template access to the 'everyone' group. " +
|
||||
"The template permissions must be updated to allow non-admin users to use this template.",
|
||||
Value: clibase.BoolOf(&disableEveryone),
|
||||
Default: "false",
|
||||
},
|
||||
cliui.SkipPromptOption(),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user