Nushell plugins collection for Provisioning project
Find a file
2025-06-27 07:53:05 +01:00
api_nu_plugin_kcl chore: add api_nu_plugin_kcl 2025-06-27 02:32:49 +01:00
bin_archives@b614574090 chore: update module 2025-06-27 07:53:05 +01:00
distribution chore: modify kcl-install to use 2025-06-27 07:50:33 +01:00
generate chore: add generate and plugin template 2025-06-27 02:35:59 +01:00
nu_plugin_clipboard chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_desktop_notifications chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_hashes chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_highlight chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_image chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_kcl@d0cc92e6f8 chore: update modules 2025-06-27 05:07:56 +01:00
nu_plugin_port_extension chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_qr_maker chore: add plugins 2025-06-27 02:31:23 +01:00
nu_plugin_tera@da1ee63a25 chore: update modules 2025-06-27 05:07:56 +01:00
nushell chore: add nushell 2025-06-27 02:33:44 +01:00
.gitignore chore: exclude path 2025-06-27 05:16:17 +01:00
.gitmodules chore: update modules 2025-06-27 05:07:56 +01:00
build-all.sh chore: add main scripts 2025-06-27 02:36:25 +01:00
collect-install.sh chore: load env, echo messages, generate install_nu_plugins.nu 2025-06-27 03:38:27 +01:00
env chore: kcl-install 2025-06-27 07:22:35 +01:00
LICENSE chore: add repo files 2025-06-27 02:32:07 +01:00
make_plugin.sh chore: adjust to pack and install 2025-06-27 04:37:07 +01:00
pack-dist.sh chore: kcl-install 2025-06-27 07:22:35 +01:00
README.md chore: add bin_archives 2025-06-27 05:08:46 +01:00

Nushell plugins for Provisioning

A Nushell plugins collection for Provisioning project

Warning

This repo contains sub-repos, use git clone --recurse-submodules

git clone --recurse-submodules [URL-to-clone-nushell-plugin]

Caution

nu_plugin_* have dependencies to nushell source via local path in Cargo.toml Nushell and plugins require to be sync with same version

FILES (content layout)

.
├── collect-install.sh      Script to collect all nu_plugin_* and install in /usr/local/bin
├── env                     Main value settings
├── pack-dist.sh            Script to archive **distribution** nu_plugin_* as architecture-platform.tar.gz
├── distribution
│   ├── collect-install.sh    Script to build and collect nu_plugin_* 
│   ├── install.sh            Script to install nu_plugin_* binaries
│   ├── install_nu_plugins.nu Nushell script to install nu_plugin_* 
│   ├── LICENSE
│   └── README.txt
├── generate                Template to generate plugins. Used with make_plugin.sh
│   └── nu_plugin_template
├── LICENSE
├── make_plugin.sh          To generate Nushell plugins. Used with generate path
├── nushell                 Nushell repo to be used as path for all nu_plugin_*
├── nu_plugin_clipboard
├── nu_plugin_desktop_notifications
├── nu_plugin_hashes
├── nu_plugin_highlight
├── nu_plugin_image
├── nu_plugin_port_extension
├── nu_plugin_qr_maker
├── nu_plugin_kcl           Repo for nu_plugin_kcl (repo sub-module)
├── nu_plugin_tera          Repo for nu_plugin_tera (repo sub-module)
├── api_nu_plugin_kcl       A try to use API KCL, nu_plugin_kcl is recommended option
├── bin_archives            Repo with plataform binaries as archives
└── README.md

Main values can be changed in env

export APP_NAME=nushell-plugins
export TARGET_PATH=${TARGET_PATH:-distribution}
export INSTALL_FILE=${INSTALL_FILE:-install_nu_plugins.nu}
export INSTALL_BIN_PATH=${INSTALL_BIN_PATH:-/usr/local/bin}
export ARCHIVE_DIR_PATH=${ARCHIVE_DIR_PATH:-/tmp}
export BIN_ARCHIVES_DIR_PATH=bin_archives

Build and Install

./build-all.sh
./collect-install.sh

Nushell install

Plugins have to be added from Nushell

Use install_nu_plugin.nu

distribution/install_nu_plugin.nu

Pack distribution

pack-dist.sh is script to archive distribution nu_plugin_* as architecture-platform.tar.gz

./pack-dis.sh 

This will generate an architecture-platform.tar.gz like: darwin-arm64-nushell-plugins.tar.gz

To install in a plataform:

cd /tmp
tar xzf architecture-platform.tar.gz
cd distribution
./install.sh  
./install_nu_plugin.nu
cd /tmp