File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ func (r *RootCmd) shareWorkspace(orgContext *OrganizationContext) *serpent.Comma
39
39
Options : serpent.OptionSet {
40
40
{
41
41
Name : "user" ,
42
- Description : "TODO ." ,
42
+ Description : "A comma separated list of users to share the workspace with ." ,
43
43
Flag : "user" ,
44
44
Value : serpent .StringArrayOf (& users ),
45
45
}, {
46
46
Name : "group" ,
47
- Description : "TODO ." ,
47
+ Description : "A comma separated list of groups to share the workspace with ." ,
48
48
Flag : "group" ,
49
49
Value : serpent .StringArrayOf (& groups ),
50
50
},
@@ -56,7 +56,7 @@ func (r *RootCmd) shareWorkspace(orgContext *OrganizationContext) *serpent.Comma
56
56
Handler : func (inv * serpent.Invocation ) error {
57
57
workspace , err := namedWorkspace (inv .Context (), client , inv .Args [0 ])
58
58
if err != nil {
59
- return xerrors .Errorf ("could not fetch the workspace %s. " , inv .Args [0 ])
59
+ return xerrors .Errorf ("could not fetch the workspace %s: %w " , inv .Args [0 ], err )
60
60
}
61
61
62
62
userRoles := make (map [string ]codersdk.WorkspaceRole , len (users ))
You can’t perform that action at this time.
0 commit comments