Skip to content

Conversation

dwahler
Copy link
Contributor

@dwahler dwahler commented Jun 3, 2022

Allow passing either workspace or username/workspace to CLI commands such as coder delete that take a workspace name as argument. (Not including coder create, since our API currently doesn't support creating workspaces owned by other users.)

Fixes #1424

@dwahler dwahler requested a review from a team June 3, 2022 17:11
cli/root.go Outdated
owner = parts[0]
name = parts[1]
default:
return codersdk.Workspace{}, xerrors.New("invalid workspace name")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be helpful to include this!

Suggested change
return codersdk.Workspace{}, xerrors.New("invalid workspace name")
return codersdk.Workspace{}, xerrors.New("invalid workspace name: %q", identifier)

@dwahler dwahler merged commit 582d636 into main Jun 3, 2022
@dwahler dwahler deleted the david/1424-cli-workspace-namespaces branch June 3, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coder delete doesn't accept fully qualified workspace name
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy