nushell/scripts
Stefan Holderbach 067ceedf79
Remove feat extra and include in default (#12140)
# Description
The intended effect of the `extra` feature has been undermined by
introducing the full builds on our release pages and having more
activity on some of the extra commands.

To simplify the feature matrix let's get rid of it and focus our effort
on truly either refining a command to well-specified behavior or
discarding it entirely from the `nu` binary and moving it into plugins.

## Details
- Remove `--features extra` from CI
- Don't explicitly name `extra` in full build wf
- Remove feature extra from build-help scripts
- Update README in `nu-cmd-extra`
- Remove feature `extra`
- Fix previously dead `format pattern` tests
- Relax signature of `to html`
- Fix/ignore `html::test_no_color_flag`
- Remove dead features from `version`
- Refine `to html` type signature

# User-Facing Changes
The commands that were previously only available when building with
`--features extra` will now be available to everyone. This increases the
number of dependencies slightly but has a limited impact on the overall
binary size.

# Tests + Formatting
Some tests that were left in `nu-command` during cratification were dead
because the feature was not passed to `nu-command` and only to
`nu-cmd-lang` for feature-flag mention in `version`.
Those tests have now been either fixed or ignored in one case.

# After Submitting
There may be places in the documentation where we point to `--features
extra` that will now be moot (apart from the generated command help)
2024-03-10 17:29:02 +01:00
..
build-all-maclin.sh Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01:00
build-all-windows.cmd Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01:00
build-all.nu Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01:00
build.rs REFACTOR: clean the root of the repo (#9231) 2023-05-20 07:57:51 -05:00
coverage-local.nu Add long options for path (#10775) 2023-10-19 22:07:01 +02:00
coverage-local.sh Fix unit tests on Android (#10224) 2023-09-05 20:17:34 +12:00
install-all.ps1 Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01:00
install-all.sh Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01:00
README.md REFACTOR: clean the root of the repo (#9231) 2023-05-20 07:57:51 -05:00
register-plugins.nu add a new toolkit install command with --features support (#9288) 2023-05-26 11:22:34 +02:00
test_virtualenv.nu Check for clean repo after tests (#11409) 2023-12-23 20:28:07 +01:00
uninstall-all.sh update install/build scripts to include --locked (#10086) 2023-08-21 12:42:42 -05:00

run the scripts

Note


the following table must be read as follows:

  • an x means it works
  • a ? means no data available

.nu scripts must be run as nu .../foo.nu
.sh scripts must be run as ./.../foo.sh
.ps1 scripts must be run as powershell .../foo.ps1

let's say a script is called foo

  • an x in the ./scripts column means foo can be run from ./scripts
  • an x in the root column means foo can be run from the root of nushell
  • an x in the anywhere column means foo can be run from anywhere!
script ./scripts/ root anywhere
build-all-maclin.sh x x x
build-all-windows.cmd ? x ?
build-all.nu x x x
coverage-local.nu x x x
coverage-local.sh x x x
install-all.ps1 ? x ?
install-all.sh x x x
register-plugins.nu x x x
uninstall-all.sh x x x