Skip to content

Commit 165b8a4

Browse files
committed
Update code comments in command
1 parent 345fef9 commit 165b8a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/command/workspace_new.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ func (c *WorkspaceNewCommand) Run(args []string) int {
104104

105105
// Create the new workspace
106106
//
107-
// In remote-state backends, obtaining a state manager
108-
// creates an empty state file for the new workspace as a
109-
// side-effect.
107+
// In local, remote and remote-state backends obtaining a state manager
108+
// creates an empty state file for the new workspace as a side-effect.
109+
//
110+
// The cloud backend also has logic in StateMgr for creating projects and
111+
// workspaces if they don't already exist.
110112
sMgr, sDiags := b.StateMgr(workspace)
111113
if sDiags.HasErrors() {
112114
c.Ui.Error(sDiags.Err().Error())

0 commit comments

Comments
 (0)