Skip to content

completion: Add missing completions for repo, project, pipeline, browse commands #41

@rbansal42

Description

@rbansal42

Context

Full codebase integration review of dynamic completions found 14 additional completion gaps across commands that were not in the original scope.

Missing Completions

repo commands (7 gaps)

  1. repo clone - positional <workspace/repo> arg needs ValidArgsFunction
  2. repo clone --branch - needs CompleteBranchNames
  3. repo delete - positional <workspace/repo> arg needs ValidArgsFunction
  4. repo view - positional [<workspace/repo>] arg needs ValidArgsFunction
  5. repo fork - positional [<workspace/repo>] arg needs ValidArgsFunction
  6. repo create --project - needs project key completion
  7. repo sync --branch - needs CompleteBranchNames
  8. repo set-default - positional [<workspace/repo>] arg needs ValidArgsFunction

project commands (1 gap)

  1. project view - positional <project-key> arg needs ValidArgsFunction (requires new API: ListProjects)

snippet commands (1 gap)

  1. snippet list --role - needs StaticFlagCompletion(["owner", "contributor", "member"])

pipeline commands (2 gaps)

  1. pipeline list --status - needs StaticFlagCompletion for pipeline states
  2. pipeline list --branch - needs CompleteBranchNames

browse command (1 gap)

  1. browse --branch - needs CompleteBranchNames

root command (1 gap)

  1. Global --repo persistent flag on root command needs CompleteRepoNames

Notes

  • Items 1-8, 10-13 are straightforward additions using existing completion functions
  • Item 9 may require a new CompleteProjectKeys function if a ListProjects API method exists
  • Item 14 affects the global persistent flag and needs careful testing to ensure local --repo flags properly shadow it

Related

This was discovered during integration review of PR #40 (dynamic shell completions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions