A place to share Nushell scripts with each other
Go to file
fj0r f39976902a
kube refine for backup (#793)
- new function `kube refine`
- define the required information in `$env.KUBERNETES_REFINE`, `kube
refine` will collect information according to its definition
- definitions in `status` and `cluster_status` are runtime information
and will not be collected. They are used in the `kg` command to display
status
- normalize the output of the `kg`, `kgp`, `kgs` command using `krefine`

- rename `kcconf` to `kccc` (kubectl change context clone)

- a new module, `refine.nu`, declaratively extracts data from complex
structures.

- `container-list` additionally displays the cmd field of the image

---------

Co-authored-by: nash <nash@iffy.me>
2024-03-30 07:14:45 -05:00
.github/workflows Refactor toolkit.nu (#791) 2024-03-15 19:17:31 +02:00
aliases Add chezmoi aliases (#788) 2024-03-12 10:55:37 -05:00
assets move assets so they're more accessible (#445) 2023-04-12 08:29:47 -05:00
before_v0.60 🐛 fix more parser errors (#783) 2024-03-15 21:10:27 -05:00
benchmarks fix removed commands (#645) 2023-10-19 19:35:23 +02:00
custom-completions add rye completions (#802) 2024-03-27 18:36:51 -05:00
custom-menus move the extra menus of Nushell into custom-menus/extra/ (#550) 2023-07-21 10:44:27 +02:00
example-config export env is not in nushell (#529) 2023-06-17 07:48:08 -05:00
make_release Add option list-merged-pr --table (#774) 2024-03-07 06:19:29 -06:00
modules kube refine for backup (#793) 2024-03-30 07:14:45 -05:00
nu-hooks rename package files (#701) 2024-02-18 16:23:47 +01:00
sourced 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
stdlib-candidate Clean up str append/prepend a little (#797) 2024-03-20 10:46:12 -05:00
themes Support for catppuccin-latte (#741) 2024-03-07 06:18:50 -06:00
.gitattributes Add Nushell Language detect for linguist (#532) 2023-06-21 11:36:01 +03:00
.gitignore add a nu-check verification CI (#771) 2024-03-12 20:48:08 +01:00
LICENSE Initial commit 2021-01-23 07:33:45 +13:00
README.md 🐛 fix more parser errors (#783) 2024-03-15 21:10:27 -05:00
toolkit.nu Refactor toolkit.nu (#791) 2024-03-15 19:17:31 +02:00

Nushell Scripts

CI

This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and create a PR that adds it to the repo.

Sections

Running Scripts

You can run nushell scripts in a few different ways.

  1. You can type nu <script name>.
  2. From with nushell, you can type source <script name> and if the script is just a bunch of commands it will run the script. If the script is a custom command it will load those custom commands into your current scope so you can run them like any other command.