fix: Stop showing resources after coder create (#2155)

Fixes #1036
This commit is contained in:
Mathias Fredriksson
2022-06-09 10:44:41 +03:00
committed by GitHub
parent 74fe38eb3d
commit 2621093452

View File

@ -242,19 +242,7 @@ func create() *cobra.Command {
return err
}
resources, err = client.WorkspaceResourcesByBuild(cmd.Context(), workspace.LatestBuild.ID)
if err != nil {
return err
}
err = cliui.WorkspaceResources(cmd.OutOrStdout(), resources, cliui.WorkspaceResourcesOptions{
WorkspaceName: workspaceName,
})
if err != nil {
return err
}
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "The %s workspace has been created!\n", cliui.Styles.Keyword.Render(workspace.Name))
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "\nThe %s workspace has been created!\n", cliui.Styles.Keyword.Render(workspace.Name))
return nil
},
}