Update command examples for agent-task create

Improves the help text for the 'gh agent-task create' command by clarifying the editor usage example and adding an example for using a file as a template.
This commit is contained in:
Kynan Ware 2025-09-10 18:39:35 -06:00
parent c0a5b9aced
commit deee0c61ed

View file

@ -76,9 +76,12 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
# Create a task with problem statement from stdin
$ echo "build me a new app" | gh agent-task create -F -
# Create a task with an editor prompt (interactive)
# Create a task with an editor
$ gh agent-task create
# Create a task with an editor and a file as a template
$ gh agent-task create -F task-desc.md
# Select a different base branch for the PR
$ gh agent-task create "fix errors" --base branch
`),