Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat/sg: support correct completions on 'sg start -cmd'#63861

Merged
bobheadxi merged 1 commit into
mainfrom
sg-start-cmd-completions
Jul 16, 2024
Merged

feat/sg: support correct completions on 'sg start -cmd'#63861
bobheadxi merged 1 commit into
mainfrom
sg-start-cmd-completions

Conversation

@bobheadxi

Copy link
Copy Markdown
Member

sg run is supposed to be deprecated in favour of sg start -cmd, but the sg start completions don't work with -cmd like sg run does.

This change updates sg start completion to check for the -cmd flag, and if it is provided, offer completions for commands instead of command_sets_ (the default sg start behaviour).

Test plan

image image

Changelog

  • Completions for sg start -cmd now offer valid suggestions.

@bobheadxi bobheadxi requested review from a team and jamesmcnamara July 16, 2024 19:00
@cla-bot cla-bot Bot added the cla-signed label Jul 16, 2024
@bobheadxi bobheadxi merged commit 61cb0dc into main Jul 16, 2024
@bobheadxi bobheadxi deleted the sg-start-cmd-completions branch July 16, 2024 19:11

@jamesmcnamara jamesmcnamara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested it out locally! works great :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants