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

chore(cli): re-order CLI create command#19658

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

Conversation

DanielleMaywood
Copy link
Contributor

Relates tocoder/internal#893

Instead ofcoder task create <template> --input <input>, it is nowcoder task create <input> --template <template>.

If there is only one AI task template on the deployment, the--template parameter can be omitted.

matifali, johnstcn, and mafredri reacted with heart emoji
Relates tocoder/internal#893Instead of `coder task create <template> --input <input>`, it is now`coder task create <input> --template <template>`.If there is only one AI task template on the deployment, the `--template`parameter can be omitted.
@DanielleMaywoodDanielleMaywoodforce-pushed thedanielle/tasks/reorder-create-cli-args branch from0fe358d to3071ef8CompareSeptember 1, 2025 13:11
@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewSeptember 1, 2025 13:22
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.

I think this new approach will ultimately be better, thanks for implementing! Some feedback inline.

Copy link
Member

@matifalimatifali left a comment

Choose a reason for hiding this comment

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

Thanks <3. 🚢

Should we mark this as breaking change?

Flag:"input",
Env:"CODER_TASK_INPUT",
Value:serpent.StringOf(&taskInput),
Required:true,
Copy link
Member

Choose a reason for hiding this comment

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

Does it mean we can start a task without an input? i.e., an empty prompt? Should we allow that?

Copy link
Member

Choose a reason for hiding this comment

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

I think this may end up happening in a prebuild scenario?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe, yes. Prebuilds are tricky.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should start tasks without input necessarily, but who's to say there isn't a default input that's only controlled by e.g. template parameters. This was one motivation that--input was made a flag previously.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Have added a check to disallow empty task input

@mafredri
Copy link
Member

Should we mark this as breaking change?

No need, this is exactly why we placed these underexp. No announcement for release yet either.

johnstcn and matifali reacted with thumbs up emoji

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

Nothing to add beyond what@mafredri already mentioned. Nice work! 👍

@matifali
Copy link
Member

matifali commentedSep 1, 2025
edited
Loading

Should we mark this as breaking change?

No need, this is exactly why we placed these underexp. No announcement for release yet either.

But many of our customers are using Tasks. So I was just being extra cautious not to break their workflows without any information.exp gives us the freedom to break, but we should still announce this commit as a breaking change in the changelog.

@mafredri
Copy link
Member

mafredri commentedSep 1, 2025
edited
Loading

But many of our customers are using Tasks. So I was just being extra cautious not to break their workflows without any information.exp gives us the freedom to break, but we should still announce this commit as a breaking change in the changelog.

I don't have a strong opinion. We don't documentexp commands and we haven't advertised the tasks CLI commands in the release. But if you feel it should be called out then let's do it. 👍🏻 (@DanielleMaywood, didcreate slip into the release?)

matifali reacted with laugh emoji

@johnstcn
Copy link
Member

johnstcn commentedSep 1, 2025
edited
Loading

But many of our customers are using Tasks. So I was just being extra cautious not to break their workflows without any information. exp gives us the freedom to break, but we should still announce this commit as a breaking change in the changelog.

We can if you feel it's necessary. Just bear in mind the output ofcoder exp --help states:

Internal commands for testing and experimentation. These are prone to breaking changes with no notice.

@DanielleMaywood
Copy link
ContributorAuthor

(@DanielleMaywood, did create slip into the release?)

It was merged on Friday so I don't think so

mafredri reacted with thumbs up emoji

@mafredri
Copy link
Member

It was merged on Friday so I don't think so

Thanks, then I don't see any reason to tag this breaking. 👍🏻

matifali reacted with thumbs up emoji

@matifali
Copy link
Member

All good then Thanks all.

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 work!

@DanielleMaywoodDanielleMaywood merged commita2a758d intomainSep 2, 2025
26 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/tasks/reorder-create-cli-args branchSeptember 2, 2025 08:07
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 2, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@matifalimatifalimatifali approved these changes

@mafredrimafredrimafredri approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@DanielleMaywood@mafredri@matifali@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp