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: implement coder exp boundary subcommand#19771

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
bcpeinhardt merged 21 commits intomainfrombcpeinhardt/coder-jail-subcommand
Sep 30, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
65d5092
initial coder jail hidden subcommand
bcpeinhardtSep 10, 2025
74e3d93
test not passing yet
bcpeinhardtSep 10, 2025
1250770
make expected text match
bcpeinhardtSep 10, 2025
2697f65
remove old test setup and update jail dependency
bcpeinhardtSep 12, 2025
9911415
hide jail subcommand
bcpeinhardtSep 12, 2025
c555f2f
use new jail base command and make subcommand properly hidden
bcpeinhardtSep 12, 2025
f3e9964
set up basic testing file (not sure what to add yet)
bcpeinhardtSep 12, 2025
5416b75
Merge branch 'main' into bcpeinhardt/coder-jail-subcommand
bcpeinhardtSep 12, 2025
f371f5b
add help test
bcpeinhardtSep 12, 2025
e8ceab6
fix variable name
bcpeinhardtSep 12, 2025
ab54d76
must have forgotten to put the version back
bcpeinhardtSep 12, 2025
034fe61
update for new name boundary instead of jail
bcpeinhardtSep 24, 2025
53b36a3
Merge branch 'main' into bcpeinhardt/coder-jail-subcommand
bcpeinhardtSep 24, 2025
7efa71b
drop go version back to 1.24.6
bcpeinhardtSep 24, 2025
47fff3a
clean up test
bcpeinhardtSep 24, 2025
8c2fbd5
lint fix unused root command in boundary subcommand method
bcpeinhardtSep 24, 2025
7db3f5d
update comments from jail to boundary
bcpeinhardtSep 24, 2025
dcc050f
Merge branch 'main' into bcpeinhardt/coder-jail-subcommand
bcpeinhardtSep 26, 2025
9d791a8
use boundary main branch
bcpeinhardtSep 26, 2025
630d7ea
move to exp
bcpeinhardtSep 30, 2025
d01516f
fix merge conflict
bcpeinhardtSep 30, 2025
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
12 changes: 12 additions & 0 deletionscli/exp_boundary.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
package cli

import (
boundarycli "github.com/coder/boundary/cli"
"github.com/coder/serpent"
)

func (*RootCmd) boundary() *serpent.Command {
cmd := boundarycli.BaseCommand() // Package coder/boundary/cli exports a "base command" designed to be integrated as a subcommand.
cmd.Use += " [args...]" // The base command looks like `boundary -- command`. Serpent adds the flags piece, but we need to add the args.
return cmd
}
33 changes: 33 additions & 0 deletionscli/exp_boundary_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
package cli_test

import (
"testing"

"github.com/stretchr/testify/assert"

boundarycli "github.com/coder/boundary/cli"
"github.com/coder/coder/v2/cli/clitest"
"github.com/coder/coder/v2/pty/ptytest"
"github.com/coder/coder/v2/testutil"
)

// Actually testing the functionality of coder/boundary takes place in the
// coder/boundary repo, since it's a dependency of coder.
// Here we want to test basically that integrating it as a subcommand doesn't break anything.
func TestBoundarySubcommand(t *testing.T) {
t.Parallel()
ctx := testutil.Context(t, testutil.WaitShort)

inv, _ := clitest.New(t, "exp", "boundary", "--help")
pty := ptytest.New(t).Attach(inv)

go func() {
err := inv.WithContext(ctx).Run()
assert.NoError(t, err)
}()

// Expect the --help output to include the short description.
// We're simply confirming that `coder boundary --help` ran without a runtime error as
// a good chunk of serpents self validation logic happens at runtime.
pty.ExpectMatch(boundarycli.BaseCommand().Short)
}
1 change: 1 addition & 0 deletionscli/root.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -145,6 +145,7 @@ func (r *RootCmd) AGPLExperimental() []*serpent.Command {
r.promptExample(),
r.rptyCommand(),
r.tasksCommand(),
r.boundary(),
}
}

Expand Down
1 change: 1 addition & 0 deletionsgo.mod
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -480,6 +480,7 @@ require (
github.com/coder/agentapi-sdk-go v0.0.0-20250505131810-560d1d88d225
github.com/coder/aibridge v0.1.3
github.com/coder/aisdk-go v0.0.9
github.com/coder/boundary v1.0.1-0.20250925154134-55a44f2a7945
github.com/coder/preview v1.0.4
github.com/dgraph-io/ristretto/v2 v2.3.0
github.com/fsnotify/fsnotify v1.9.0
Expand Down
2 changes: 2 additions & 0 deletionsgo.sum
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -915,6 +915,8 @@ github.com/coder/aibridge v0.1.3 h1:7A9RQaHQUjtse47ShF3kBj2hMmT1R7BEFgiyByr8Vvc=
github.com/coder/aibridge v0.1.3/go.mod h1:GWc0Owtlzz5iMHosDm6FhbO+SoG5W+VeOKyP9p9g9ZM=
github.com/coder/aisdk-go v0.0.9 h1:Vzo/k2qwVGLTR10ESDeP2Ecek1SdPfZlEjtTfMveiVo=
github.com/coder/aisdk-go v0.0.9/go.mod h1:KF6/Vkono0FJJOtWtveh5j7yfNrSctVTpwgweYWSp5M=
github.com/coder/boundary v1.0.1-0.20250925154134-55a44f2a7945 h1:hDUf02kTX8EGR3+5B+v5KdYvORs4YNfDPci0zCs+pC0=
github.com/coder/boundary v1.0.1-0.20250925154134-55a44f2a7945/go.mod h1:d1AMFw81rUgrGHuZzWdPNhkY0G8w7pvLNLYF0e3ceC4=
github.com/coder/bubbletea v1.2.2-0.20241212190825-007a1cdb2c41 h1:SBN/DA63+ZHwuWwPHPYoCZ/KLAjHv5g4h2MS4f2/MTI=
github.com/coder/bubbletea v1.2.2-0.20241212190825-007a1cdb2c41/go.mod h1:I9ULxr64UaOSUv7hcb3nX4kowodJCVS7vt7VVJk/kW4=
github.com/coder/clistat v1.0.0 h1:MjiS7qQ1IobuSSgDnxcCSyBPESs44hExnh2TEqMcGnA=
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp