Skip to content

feat(cli): add provisioner list and provisioner jobs list - #16030

Merged
mafredri merged 3 commits into
mainfrom
mafredri/feat-cli-provisioner-and-jobs-list
Jan 20, 2025
Merged

mafredri merged 3 commits into
mainfrom
mafredri/feat-cli-provisioner-and-jobs-list

Conversation

@mafredri

@mafredri mafredri commented Jan 3, 2025 •

Copy link
Copy Markdown
Member

Stack:


feat(cli): add provisioner list and provisioner jobs list

Closes #15191
Updates #15084
Supercedes #15940

(The column ordering in the tables is not ideal, I've created a follow-up issue for that: #16055.)

@mafredri mafredri changed the title feat(cli): add provisioner list and provisioner jobs list [3/3] feat(cli): add provisioner list and provisioner jobs list Jan 3, 2025
@mafredri
mafredri changed the base branch from main to mafredri/feat-coderd-provisioner-list January 3, 2025 15:51
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 5edf87e to 90a2e64 Compare January 3, 2025 15:55
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-list branch from 346ca29 to ebaf498 Compare January 3, 2025 16:08
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 90a2e64 to 90f19d1 Compare January 3, 2025 16:08
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-list branch from ebaf498 to ed828f6 Compare January 3, 2025 16:13
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch 2 times, most recently from 180bf45 to 4dcb7cb Compare January 3, 2025 16:25
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-list branch from ed828f6 to 8bee6f5 Compare January 3, 2025 16:25
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 4dcb7cb to 10475cc Compare January 3, 2025 16:54
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-list branch from 8bee6f5 to d76be47 Compare January 3, 2025 16:54
@mafredri mafredri changed the title [3/3] feat(cli): add provisioner list and provisioner jobs list feat(cli): add provisioner list and provisioner jobs list Jan 3, 2025
@mafredri
mafredri requested review from johnstcn and mtojek January 7, 2025 09:03
Comment thread cli/provisioners_test.go

var got bytes.Buffer
inv, root := clitest.New(t,
"provisioners",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it provisioners or provisioner?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The end goal is to show provisioners in the help for consistency with our other commands. I think you mentioned to move the rename from provisioner -> provisioners to a follow-up PR in #15940 so I implemented it here. Since it's aliased it doesn't really matter what the test calls out, so it'll be one less change in the follow-up PR.

Comment thread cli/provisioners.go
return cmd
}

func (r *RootCmd) provisionerList() *serpent.Command {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sane question

Comment thread cli/root.go Resolved
Comment thread coderd/provisionerjobs_test.go Resolved
@mafredri
mafredri changed the base branch from mafredri/feat-coderd-provisioner-list to mafredri/feat-coderd-provisioner-jobs-list January 7, 2025 14:23

@mtojek mtojek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ready to merge 👍

@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 10475cc to c1a8874 Compare January 13, 2025 13:03
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch 2 times, most recently from e4b4e2f to d967f4b Compare January 13, 2025 14:05
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch 2 times, most recently from 555f4f3 to 33fc30d Compare January 13, 2025 15:32
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from d967f4b to b1fbc82 Compare January 13, 2025 15:32
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch 2 times, most recently from 8726bd9 to 3dcee5e Compare January 14, 2025 14:09
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from 5633448 to 4bc3559 Compare January 14, 2025 14:09
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 3dcee5e to 4c5b63b Compare January 14, 2025 14:41
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from a37b1bd to c924457 Compare January 14, 2025 14:41
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 4c5b63b to b28a888 Compare January 14, 2025 14:42
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from c924457 to 9525abd Compare January 14, 2025 14:42
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from b28a888 to 965d618 Compare January 14, 2025 14:45
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from 9525abd to 51f628c Compare January 14, 2025 14:45
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 965d618 to 737d4b1 Compare January 14, 2025 16:21
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch from 51f628c to 1b40a44 Compare January 14, 2025 16:21
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from 737d4b1 to ef7b2eb Compare January 14, 2025 17:32
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch 2 times, most recently from b6eb60d to 8d5fca2 Compare January 15, 2025 15:50
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch 2 times, most recently from 504fc08 to d36df1a Compare January 16, 2025 11:22
@mafredri
mafredri force-pushed the mafredri/feat-coderd-provisioner-jobs-list branch 4 times, most recently from dd49c08 to 0fd9aa7 Compare January 16, 2025 12:54
Base automatically changed from mafredri/feat-coderd-provisioner-jobs-list to main January 20, 2025 09:18
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from d36df1a to a8dd9a1 Compare January 20, 2025 15:17
@mafredri
mafredri force-pushed the mafredri/feat-cli-provisioner-and-jobs-list branch from a8dd9a1 to b9fc3a4 Compare January 20, 2025 15:19
@mafredri
mafredri enabled auto-merge (squash) January 20, 2025 17:20
@mafredri
mafredri merged commit c0db364 into main Jan 20, 2025
@mafredri
mafredri deleted the mafredri/feat-cli-provisioner-and-jobs-list branch January 20, 2025 17:24
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add CLI command to list provisioner jobs

3 participants