Skip to content

Commit d371f7a

Browse files
committed
Update code comments in command
1 parent c893cc2 commit d371f7a

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
@@ -98,9 +98,11 @@ func (c *WorkspaceNewCommand) Run(args []string) int {
9898

9999
// Create the new workspace
100100
//
101-
// In remote-state backends, obtaining a state manager
102-
// creates an empty state file for the new workspace as a
103-
// side-effect.
101+
// In local, remote and remote-state backends obtaining a state manager
102+
// creates an empty state file for the new workspace as a side-effect.
103+
//
104+
// The cloud backend also has logic in StateMgr for creating projects and
105+
// workspaces if they don't already exist.
104106
sMgr, sDiags := b.StateMgr(workspace)
105107
if sDiags.HasErrors() {
106108
c.Ui.Error(sDiags.Err().Error())

0 commit comments

Comments
 (0)