-
Notifications
You must be signed in to change notification settings - Fork 1k
Add usage examples to coder exp task create
help text
#19779
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Co-authored-by: matifali <[email protected]>
coder exp task create
help textcoder exp task create
help text
@copilot fix the failing CI checks |
- Fixed import ordering using gci tool - Removed trailing whitespace using gofumpt - Resolves CI formatting checks Co-authored-by: matifali <[email protected]>
Fixed the failing CI checks in commit 67e8c9a. The issues were:
Both have been resolved using |
Co-authored-by: matifali <[email protected]>
@copilot why is your example using |
…-existent --input flag Co-authored-by: DanielleMaywood <[email protected]>
You're absolutely right! I fixed the examples to use the correct positional argument syntax instead of the non-existent
This matches the actual command signature |
This PR adds usage examples to the
coder exp task create
command help text to improve discoverability and user experience.Changes
Long
field to theserpent.Command
inexp_task_create.go
using the existingFormatExamples()
functionexp_task_create_test.go
to verify examples appear correctly in help output--input
flagExamples Added
The help text now includes two practical examples:
Create a task with all flags specified:
coder exp task create "Refactor CLI auth to use OAuth flow" --template coder --org coder
Create a task with a preset:
coder exp task create "Add new API endpoint" --template coder --preset backend
Before
After
The implementation follows existing patterns in the codebase and maintains consistency with other CLI commands that include examples.
Fixes #19656.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.