Skip to content

feat: rename set command's --parent flag to --parents #2058

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jrz
Copy link

@jrz jrz commented Apr 7, 2025

Summary

Changes --parent to --parents. Updated docs etc.
It adds a fallback --parent, but will warn about the change.
Note that the old option still appears in --help (Hence the Hidden: false in cli.go. That can be set to true, or just removed.)

Fixes: List issue numbers here
#2010 Consider renaming --parent to --parents

Other Information

Please check if you want the Hidden: true or not.

I noticed tests fail, but the same tests fail from a fresh master.
I couldn't really think of a test, as the option itself is only used as -p in the test.

Lastly, in the contribute/core.html I noticed the instructions said bats test/list_commands.bash instead of bats test/list_commands.bats

@jrz jrz requested a review from a team as a code owner April 7, 2025 17:14
@jrz jrz changed the title Rename set parent to parents refactor: Rename set parent to parents Apr 7, 2025
@jrz jrz marked this pull request as draft April 7, 2025 19:54
@jrz jrz marked this pull request as ready for review April 7, 2025 19:54
CHANGELOG.md Outdated
@@ -8,7 +8,7 @@
* remove comment from first line zsh completion output ([#2035](https://github.com/asdf-vm/asdf/issues/2035)) ([#2037](https://github.com/asdf-vm/asdf/issues/2037)) ([74d7b17](https://github.com/asdf-vm/asdf/commit/74d7b17a1cc9f640cf0f5134416d1cf7a56fe19f))

## [0.16.6](https://github.com/asdf-vm/asdf/compare/v0.16.5...v0.16.6) (2025-03-21)

* rename --parent argument to --parents ([#2010](https://github.com/asdf-vm/asdf/issues/2010))
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this change. CHANGELOG.md entries are added automatically.

@Stratus3D Stratus3D changed the title refactor: Rename set parent to parents feat: rename set command's --parent flag to --parents Apr 8, 2025
@jrz jrz force-pushed the rename-set-parent-to-parents branch from e9d9354 to 89fbcd6 Compare April 8, 2025 13:07
@jrz
Copy link
Author

jrz commented Apr 8, 2025

Reverted, and squashed some of the commits.
The last one could be a separate chore.

First commit is for global renaming + a bit or rewording
Second commit is the actual code

@jrz jrz force-pushed the rename-set-parent-to-parents branch from 89fbcd6 to 9e3f67e Compare April 8, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants