feat: support fully-qualified workspace names in CLI (#2036)

This commit is contained in:
David Wahler
2022-06-03 12:47:56 -05:00
committed by GitHub
parent fc38b61819
commit 582d636e54
12 changed files with 91 additions and 16 deletions

View File

@ -48,7 +48,7 @@ func bump() *cobra.Command {
return xerrors.Errorf("get current org: %w", err)
}
workspace, err := client.WorkspaceByOwnerAndName(cmd.Context(), organization.ID, codersdk.Me, args[0])
workspace, err := namedWorkspace(cmd, client, organization.ID, args[0])
if err != nil {
return xerrors.Errorf("get workspace: %w", err)
}