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): add quiet flag to task create#19701

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
DanielleMaywood merged 1 commit intomainfromdanielle/tasks/quiet-flag-create
Sep 4, 2025

Conversation

DanielleMaywood
Copy link
Contributor

Allows passing--quiet (or-q) to the task create command so that it only prints the ID of the task.

Allows passing `--quiet` (or `-q`) to the task create command so that itonly prints the ID of the task.
Comment on lines +48 to +52
casefmt.Sprintf("/api/v2/organizations/%s/templates/%s/versions/%s",orgID,templateName,templateVersionName):
httpapi.Write(ctx,w,http.StatusOK, codersdk.TemplateVersion{
ID:templateVersionID,
})
casefmt.Sprintf("/api/v2/organizations/%s/templates/my-template",orgID):
casefmt.Sprintf("/api/v2/organizations/%s/templates/%s",orgID,templateName):
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

drive-by test fix

}

httpapi.Write(ctx,w,http.StatusCreated, codersdk.Workspace{
httpapi.Write(ctx,w,http.StatusCreated, codersdk.Task{
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

drive-by test fix

@DanielleMaywood
Copy link
ContributorAuthor

manually tested to confirm it works

coder@danielle ~/coder ((6e4f330b))> ./scripts/coder-dev.sh exp task status --watch $(./scripts/coder-dev.sh exp tasks create -q "my custom prompt")STATE CHANGED  STATUS    STATE  MESSAGE1s ago         starting5s ago         running47s ago        stopping51s ago        stopped

@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewSeptember 4, 2025 08:52
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Nice!

@DanielleMaywoodDanielleMaywood merged commitf94abfc intomainSep 4, 2025
30 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/tasks/quiet-flag-create branchSeptember 4, 2025 09:03
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 4, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@DanielleMaywood@mafredri@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp