From 4180ce853c92671c4a308470970e59bba599986d Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:21:35 +0100 Subject: [PATCH] split the package into `nu-themes` and `nu-hooks` (#700) related to - https://github.com/nushell/nupm/pull/50 ## description `nu-scripts` was not really a package but rather a set of two module packages. this feature has been removed from Nupm in https://github.com/nushell/nupm/pull/50 and this PR fixes the `nu-scripts` packages. > **Note** > the files in `nu-hooks/` have been moved to `nu-hooks/nu-hooks/` to fit into the current model of Nupm this PR does not change anything from the user point of view, apart from the install that goes from ```nushell nupm install --path --force . ``` to ```nushell for pkg in (ls **/package.nuon | get name | path dirname) { nupm install --force --path $pkg } ``` --- nu-hooks/{ => nu-hooks}/command_not_found/README.md | 0 nu-hooks/{ => nu-hooks}/command_not_found/did_you_mean.nu | 0 nu-hooks/{ => nu-hooks}/direnv/config.nu | 0 nu-hooks/{ => nu-hooks}/direnv/direnv.nu | 0 nu-hooks/{ => nu-hooks}/dynamic-load/dynamic-load.nu | 0 nu-hooks/{ => nu-hooks}/filesystem/autojump.nu | 0 nu-hooks/{ => nu-hooks}/rusty-paths/rusty-paths.nu | 0 package.nuon => nu-hooks/package.nuon | 5 ++--- themes/package.nuon | 8 ++++++++ 9 files changed, 10 insertions(+), 3 deletions(-) rename nu-hooks/{ => nu-hooks}/command_not_found/README.md (100%) rename nu-hooks/{ => nu-hooks}/command_not_found/did_you_mean.nu (100%) rename nu-hooks/{ => nu-hooks}/direnv/config.nu (100%) rename nu-hooks/{ => nu-hooks}/direnv/direnv.nu (100%) rename nu-hooks/{ => nu-hooks}/dynamic-load/dynamic-load.nu (100%) rename nu-hooks/{ => nu-hooks}/filesystem/autojump.nu (100%) rename nu-hooks/{ => nu-hooks}/rusty-paths/rusty-paths.nu (100%) rename package.nuon => nu-hooks/package.nuon (57%) create mode 100644 themes/package.nuon diff --git a/nu-hooks/command_not_found/README.md b/nu-hooks/nu-hooks/command_not_found/README.md similarity index 100% rename from nu-hooks/command_not_found/README.md rename to nu-hooks/nu-hooks/command_not_found/README.md diff --git a/nu-hooks/command_not_found/did_you_mean.nu b/nu-hooks/nu-hooks/command_not_found/did_you_mean.nu similarity index 100% rename from nu-hooks/command_not_found/did_you_mean.nu rename to nu-hooks/nu-hooks/command_not_found/did_you_mean.nu diff --git a/nu-hooks/direnv/config.nu b/nu-hooks/nu-hooks/direnv/config.nu similarity index 100% rename from nu-hooks/direnv/config.nu rename to nu-hooks/nu-hooks/direnv/config.nu diff --git a/nu-hooks/direnv/direnv.nu b/nu-hooks/nu-hooks/direnv/direnv.nu similarity index 100% rename from nu-hooks/direnv/direnv.nu rename to nu-hooks/nu-hooks/direnv/direnv.nu diff --git a/nu-hooks/dynamic-load/dynamic-load.nu b/nu-hooks/nu-hooks/dynamic-load/dynamic-load.nu similarity index 100% rename from nu-hooks/dynamic-load/dynamic-load.nu rename to nu-hooks/nu-hooks/dynamic-load/dynamic-load.nu diff --git a/nu-hooks/filesystem/autojump.nu b/nu-hooks/nu-hooks/filesystem/autojump.nu similarity index 100% rename from nu-hooks/filesystem/autojump.nu rename to nu-hooks/nu-hooks/filesystem/autojump.nu diff --git a/nu-hooks/rusty-paths/rusty-paths.nu b/nu-hooks/nu-hooks/rusty-paths/rusty-paths.nu similarity index 100% rename from nu-hooks/rusty-paths/rusty-paths.nu rename to nu-hooks/nu-hooks/rusty-paths/rusty-paths.nu diff --git a/package.nuon b/nu-hooks/package.nuon similarity index 57% rename from package.nuon rename to nu-hooks/package.nuon index 98f1e60f..a5ab776d 100644 --- a/package.nuon +++ b/nu-hooks/package.nuon @@ -1,9 +1,8 @@ { - name: "nu-scripts" - description: "A place to share Nushell scripts with each other" + name: "nu-hooks" + description: "Officially-supported hooks for Nushell" documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md" license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE" version: 0.1.0 type: "module" - modules: ["./themes/nu-themes/", "./nu-hooks/"] } diff --git a/themes/package.nuon b/themes/package.nuon new file mode 100644 index 00000000..2804bd2c --- /dev/null +++ b/themes/package.nuon @@ -0,0 +1,8 @@ +{ + name: "nu-themes" + description: "Officially-supported themes for Nushell" + documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md" + license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE" + version: 0.1.0 + type: "module" +}