docs(agent-task view): improve --help docs
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
88e2d0d7d9
commit
6a5481368f
1 changed files with 17 additions and 1 deletions
|
|
@ -51,10 +51,26 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
|
|||
|
||||
cmd := &cobra.Command{
|
||||
Use: "view [<session-id> | <pr-number> | <pr-url> | <pr-branch>]",
|
||||
Short: "View an agent task session",
|
||||
Short: "View an agent task session (preview)",
|
||||
Long: heredoc.Doc(`
|
||||
View an agent task session.
|
||||
`),
|
||||
Example: heredoc.Doc(`
|
||||
# View an agent task by session ID
|
||||
$ gh agent-task view e2fa49d2-f164-4a56-ab99-498090b8fcdf
|
||||
|
||||
# View an agent task by pull request number in current repo
|
||||
$ gh agent-task view 12345
|
||||
|
||||
# View an agent task by pull request number
|
||||
$ gh agent-task view --repo OWNER/REPO 12345
|
||||
|
||||
# View an agent task by pull request reference
|
||||
$ gh agent-task view OWNER/REPO#12345
|
||||
|
||||
# View a pull request agents tasks in the browser
|
||||
$ gh agent-task view 12345 --web
|
||||
`),
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
// Support -R/--repo override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue