Skip to content

Repo name suggestions for cs create#5108

Merged
mislav merged 5 commits intocli:trunkfrom
cmbrose:cmbrose/cs-repo-suggestions
Jan 31, 2022
Merged

Repo name suggestions for cs create#5108
mislav merged 5 commits intocli:trunkfrom
cmbrose:cmbrose/cs-repo-suggestions

Conversation

@cmbrose
Copy link
Member

@cmbrose cmbrose commented Jan 27, 2022

Fixes #5093

Adds the ability to tab while entering the repo name in the cs create command in order to get suggestions. Suggestions are populated from the search/repositories API.

@cmbrose cmbrose requested a review from a team as a code owner January 27, 2022 02:59
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Jan 27, 2022
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

🙌🏻

Copy link
Contributor

@adonovan adonovan left a comment

Choose a reason for hiding this comment

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

Code looks fine. Lots of minor Go style nits.

@cmbrose
Copy link
Member Author

cmbrose commented Jan 28, 2022

Thanks @adonovan for the feedback and tips! It was very helpful 🎉

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

This looks good! There is some wonky handling of keyboard shortcuts when it comes to search suggestions in Survey, but that's up to the upstream library and not your implementation. I would say that this can ship even without improvements to Survey and I left some polish-level comments.

@cmbrose cmbrose requested a review from mislav January 28, 2022 19:24
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for the updates 👍

@mislav mislav enabled auto-merge (squash) January 31, 2022 10:15
@mislav mislav merged commit eeeb73a into cli:trunk Jan 31, 2022
@cmbrose cmbrose deleted the cmbrose/cs-repo-suggestions branch January 31, 2022 15:38
Copy link

@Tr1985 Tr1985 left a comment

Choose a reason for hiding this comment

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

Copy link

@Tr1985 Tr1985 left a comment

Choose a reason for hiding this comment

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

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

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add repo suggestions for gh cs create

6 participants