Skip to content

Commit

Permalink
fix: workspace update defaults to use current workspace (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Apr 26, 2024
1 parent c19e172 commit b999f67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/workspace/update/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ func (o *Options) Run() error {
return err
}

// Use current workspace if not specifed.
if o.Name == "" {
if o.Name, err = storage.GetCurrent(); err != nil {
return err
}
}

ws, err := util.GetValidWorkspaceFromFile(o.FilePath, o.Name)
if err != nil {
return err
Expand Down

0 comments on commit b999f67

Please sign in to comment.