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(cli): create workspace using parameters from existing workspace#10604

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
mtojek merged 10 commits intomainfrom9923-cli-duplicate
Nov 9, 2023
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Improve
  • Loading branch information
@mtojek
mtojek committedNov 9, 2023
commitf0bb47ecdb1e8f9d0df66620ea435a21a4ea9100
6 changes: 3 additions & 3 deletionscli/create.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,7 +86,7 @@ func (r *RootCmd) create() *clibase.Cmd {

sourceWorkspace, err = client.WorkspaceByOwnerAndName(inv.Context(), sourceWorkspaceOwner, sourceWorkspaceName, codersdk.WorkspaceOptions{})
if err != nil {
return err
returnxerrors.Errorf("get source workspace: %w",err)
}

_, _ = fmt.Fprintf(inv.Stdout, "Coder will use the same template %q as the source workspace.\n", sourceWorkspace.TemplateName)
Expand DownExpand Up@@ -158,9 +158,9 @@ func (r *RootCmd) create() *clibase.Cmd {

var sourceWorkspaceParameters []codersdk.WorkspaceBuildParameter
if copyParameters != "" {
sourceWorkspaceParameters, err = client.WorkspaceBuildParameters(inv.Context(), sourceWorkspace.ID)
sourceWorkspaceParameters, err = client.WorkspaceBuildParameters(inv.Context(), sourceWorkspace.LatestBuild.ID)
if err != nil {
return err
returnxerrors.Errorf("get source workspace build parameters: %w",err)
}
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp