Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dropping our position system for ordering commands in --help #707

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

erunion
Copy link
Member

@erunion erunion commented Dec 8, 2022

🧰 Changes

We've long had this position system within our individual commands for positioning where they show up on --help screens with the goal of prioritizing the more important commands over those that aren't, however we've always just named our important commands to not have an :action in their name so they've always been at the top of the list anyways.

The only --help change that's happening with this removal is moving versions:delete from being at the end of its group to now being after versions:create (bfd):

screen_shot_2022-12-08_at_2 26 17_pm_360

🧬 QA & Testing

Main --help

Screen Shot 2022-12-08 at 3 40 26 PM

Command --help

Screen Shot 2022-12-08 at 3 39 56 PM

Provide as much information as you can on how to test what you've done.

@erunion erunion added the enhancement New feature or request label Dec 8, 2022
@erunion erunion marked this pull request as ready for review December 8, 2022 23:40
@erunion erunion requested a review from kanadgupta December 8, 2022 23:41
return cmds
.sort((a, b) => (a.position > b.position ? 1 : -1))
.sort((a, b) => (a.name > b.name ? 1 : -1))
Copy link
Member

Choose a reason for hiding this comment

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

a lot of our behind-the-scenes logic here is such a mess lol. the field is called command in the command file but name here. got it.

@erunion erunion merged commit 75aaba2 into main Dec 9, 2022
@erunion erunion deleted the feat/drop-ordering-system branch December 9, 2022 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants