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

Rename/deprecate into bits to format bits #14634

Merged
merged 3 commits into from
Dec 28, 2024

Conversation

sholderbach
Copy link
Member

@sholderbach sholderbach commented Dec 19, 2024

Description

into bits is a bad name because it is not a traditional type cast to a
bits type like all the other into commands.

Instead it is a pretty printer generating string type output. Thus the
correct bucket is format and its subcommands.

User-Facing Changes

into bits will raise a DeprecatedWarning suggesting the move to format bits
into bits can be removed in 0.103.0

Tests + Formatting

All tests that relied on into bits have been updated to format bits

`into bits` is a bad name because it is not a traditional type cast to a
`bits` type like all the other `into` commands.

Instead it is a pretty printer generating `string` type output. Thus the
correct bucket is `format` and its subcommands.
@sholderbach sholderbach added pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes deprecation Related to the deprecation of commands naming-things 🚲 🛖 Working towards consistent naming. No bikeshedding brigade please! labels Dec 19, 2024
sholderbach added a commit to sholderbach/nushell that referenced this pull request Dec 19, 2024
Stumbled over unnecessary `pub` `fn action` and `struct Arguments` when
reworking `into bits` in nushell#14634

Stuff like this should be local until proven otherwise and then named
approrpiately.
sholderbach added a commit that referenced this pull request Dec 19, 2024
Stumbled over unnecessary `pub` `fn action` and `struct Arguments` when
reworking `into bits` in #14634

Stuff like this should be local until proven otherwise and then named
approrpiately.
@sholderbach sholderbach merged commit d36514a into nushell:main Dec 28, 2024
14 checks passed
@github-actions github-actions bot added this to the v0.102.0 milestone Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Related to the deprecation of commands naming-things 🚲 🛖 Working towards consistent naming. No bikeshedding brigade please! pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant