Skip to content

Commit

Permalink
[v16] Machine ID: Bot instance management in tctl bots instances (#…
Browse files Browse the repository at this point in the history
…47225)

* Machine ID: Bot instance management in `tctl bots instances`

This adds new new subcommands to `tctl` to manage bot instances:
- `tctl bots instances list` lists bot instances
- `tctl bots instances show` shows a specific bot instance
- `tctl bots instances add` adds a new instance to an existing bot

This also adds help text to guide users between the new commands. It
also adds a few aliases for common alternate command names.

* Fix lints

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <[email protected]>

* Add note on other join methods, fix other review comments

* Fix import ordering

---------

Co-authored-by: Zac Bergquist <[email protected]>
  • Loading branch information
timothyb89 and zmb3 authored Oct 21, 2024
1 parent d34354b commit 65f48ff
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 71 deletions.
6 changes: 6 additions & 0 deletions tool/tctl/common/admin_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ func (s *adminActionTestSuite) testBots(t *testing.T) {
setup: createBot,
cleanup: deleteBot,
},
"tctl bots instance add": {
command: fmt.Sprintf("bots instance add %v", botName),
cliCommand: &tctl.BotsCommand{},
setup: createBot,
cleanup: deleteBot,
},
} {
t.Run(name, func(t *testing.T) {
s.testCommand(t, ctx, tc)
Expand Down
Loading

0 comments on commit 65f48ff

Please sign in to comment.