Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973df19 commit 36a9bc3Copy full SHA for 36a9bc3
cli/update.go
@@ -20,7 +20,9 @@ func update() *cobra.Command {
20
Annotations: workspaceCommand,
21
Use: "update <workspace>",
22
Args: cobra.ExactArgs(1),
23
- Short: "Update a workspace",
+ Short: "Will update and start a given workspace if it is out of date.",
24
+ Long: "Will update and start a given workspace if it is out of date. Use --always-prompt to change " +
25
+ "the parameter values of the workspace.",
26
RunE: func(cmd *cobra.Command, args []string) error {
27
client, err := CreateClient(cmd)
28
if err != nil {
@@ -68,7 +70,7 @@ func update() *cobra.Command {
68
70
69
71
build, err := client.CreateWorkspaceBuild(cmd.Context(), workspace.ID, codersdk.CreateWorkspaceBuildRequest{
72
TemplateVersionID: template.ActiveVersionID,
- Transition: workspace.LatestBuild.Transition,
73
+ Transition: codersdk.WorkspaceTransitionStart,
74
ParameterValues: buildParams.parameters,
75
RichParameterValues: buildParams.richParameters,
76
})
0 commit comments