mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
8eece32a8d
# Description i've almost always wanted to clean up the root of the repo, so here is my take at it, with some important advice given by @fdncred 😌 - `README.release.txt` is now gone and directly inline in the `release-pkg` script used in the `release` *workflow* - `build.rs` has been moved to `scripts/` and its path has been changed in [`Cargo.toml`](https://github.com/amtoine/nushell/blob/refactor/clean-root/Cargo.toml#L3) according to the [*Build Scripts* section](https://doc.rust-lang.org/cargo/reference/build-scripts.html#build-scripts) of *The Cargo Book* - i've merged `images/` into `assets/` and fix the only mention to the GIF in the README - i've moved the `docs/README.md` inside the main `README.md` as a new [*Configuration* section](https://github.com/amtoine/nushell/tree/refactor/clean-root#configuration) - the very deprecated `pkg_mgrs/` has been removed - all the `.nu`, `.sh`, `.ps1` and `.cmd` scripts have been moved to `scripts/` ### things i've left as-is - all the other `.md` documents - the configuration files - all the Rust and core stuff - `docker/` - `toolkit.nu` - the `wix/` diretory which appears to be important for `winget` # User-Facing Changes scripts that used to rely on the paths to some of the scripts should now call the scripts inside `scripts/` => i think this for the greater good, it was not pretty nor scalable to have a bunch of scripts in the root of our main `nushell` 😱 *i even think we might want to move these scripts outside the main `nushell` repo* maybe to `nu_scripts` or some other tool 👍 # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - ⚫ `toolkit test` - ⚫ `toolkit test stdlib` # After Submitting ``` $nothing ```
32 lines
994 B
PowerShell
32 lines
994 B
PowerShell
|
|
# Usage: Just run `powershell install-all.ps1` in nushell root directory
|
|
|
|
Write-Output "-----------------------------------------------------------------"
|
|
Write-Output "Installing nushell (nu) with dataframes and all the plugins"
|
|
Write-Output "-----------------------------------------------------------------"
|
|
Write-Output ""
|
|
|
|
Write-Output "Install nushell from local..."
|
|
Write-Output "----------------------------------------------"
|
|
cargo install --force --path . --features=dataframe
|
|
|
|
$NU_PLUGINS = @(
|
|
'nu_plugin_example',
|
|
'nu_plugin_gstat',
|
|
'nu_plugin_inc',
|
|
'nu_plugin_query',
|
|
'nu_plugin_custom_values',
|
|
'nu_plugin_formats'
|
|
)
|
|
|
|
foreach ( $plugin in $NU_PLUGINS) {
|
|
Write-Output ''
|
|
Write-Output "----------------------------------------------"
|
|
Write-Output "Install plugin $plugin from local..."
|
|
Write-Output "----------------------------------------------"
|
|
Set-Location crates/$plugin
|
|
cargo install --force --path .
|
|
Set-Location ../../
|
|
}
|
|
|