Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dwahler merged 4 commits intomainfromdavid/1424-cli-workspace-namespaces
Jun 3, 2022

Conversation

dwahler
Copy link
Contributor

Allow passing eitherworkspace orusername/workspace to CLI commands such ascoder delete that take a workspace name as argument. (Not includingcoder create, since our API currently doesn't support creating workspaces owned by other users.)

Fixes#1424

@dwahlerdwahler requested a review froma teamJune 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 reacted with thumbs up emoji
@dwahlerdwahler merged commit582d636 intomainJun 3, 2022
@dwahlerdwahler deleted the david/1424-cli-workspace-namespaces branchJune 3, 2022 17:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@coadlercoadlercoadler approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

coder delete doesn't accept fully qualified workspace name
3 participants
@dwahler@johnstcn@coadler

[8]ページ先頭

©2009-2025 Movatter.jp