From cbca144243d5f213daf578d84259c3ad87a9d85b Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 18 Feb 2024 16:39:37 +0100 Subject: [PATCH 1/5] update the registry of known packages this uses the content of `index.nuon` and the following pipeline to automate the process: ```nushell open index.nuon | update package { str replace "github.com:" "https://raw.githubusercontent.com/" } | each {|it| let url = if $it.dir? != null { [$it.package, "main", $it.dir, "nupm.nuon" ] | str join "/" } else { [$it.package, "main", "nupm.nuon" ] | str join "/" } print $url http get $url } | to nuon --indent 4 ``` --- registry.nuon | 167 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 156 insertions(+), 11 deletions(-) diff --git a/registry.nuon b/registry.nuon index d2c09d5..dd45203 100644 --- a/registry.nuon +++ b/registry.nuon @@ -26,21 +26,166 @@ { git: [ - [name version url revision path]; [ - nu-git-manager - 0.5.0 - https://github.com/amtoine/nu-git-manager.git - 0.5.0 + name, + version, + url, + revision, + path + ]; + [ + nu_plugin_audio_hook, + "0.1.12", + "https://github.com/:FMotalleb/nu_plugin_audio_hook", + "0.1.12", + . + ], + [ + nu_plugin_clipboard, + "0.3.4", + "https://github.com/:FMotalleb/nu_plugin_clipboard", + "0.3.4", + . + ], + [ + nu_plugin_desktop_notifications, + "1.0.7", + "https://github.com/:FMotalleb/nu_plugin_desktop_notifications", + "1.0.7", + . + ], + [ + nu_plugin_image, + "0.3.2", + "https://github.com/:FMotalleb/nu_plugin_image", + "0.3.2", + . + ], + [ + nu_plugin_port_list, + "1.2.10", + "https://github.com/:FMotalleb/nu_plugin_port_list", + "1.2.10", + . + ], + [ + nu_plugin_port_scan, + "1.0.10", + "https://github.com/:FMotalleb/nu_plugin_port_scan", + "1.0.10", + . + ], + [ + nu_plugin_qr_maker, + "1.0.2", + "https://github.com/:FMotalleb/nu_plugin_qr_maker", + "1.0.2", + . + ], + [ + nu-git-manager, + "0.6.0", + "https://github.com/:amtoine/nu-git-manager", + "0.6.0", pkgs/nu-git-manager - ] - + ], [ - nu-git-manager-sugar - 0.5.0 - https://github.com/amtoine/nu-git-manager.git - 0.5.0 + nu-git-manager-sugar, + "0.6.0", + "https://github.com/:amtoine/nu-git-manager", + "0.6.0", pkgs/nu-git-manager-sugar + ], + [ + nu-pomodoro, + "0.1.0", + "https://github.com/:amtoine/nu-pomodoro", + "0.1.0", + . + ], + [ + nu-right-prompt, + "0.1.0", + "https://github.com/:amtoine/nu-right-prompt", + "0.1.0", + . + ], + [ + nu_plugin_explore, + "0.1.2", + "https://github.com/:amtoine/nu_plugin_explore", + "0.1.2", + . + ], + [ + nu-clippy, + "0.1.0", + "https://github.com/:amtoine/scripts", + "0.1.0", + nu-clippy + ], + [ + nu-logout, + "0.1.0", + "https://github.com/:amtoine/scripts", + "0.1.0", + nu-logout + ], + [ + nu-monitor-manager, + "0.1.0", + "https://github.com/:amtoine/scripts", + "0.1.0", + nu-monitor-manager + ], + [ + nu-scripts, + "0.1.0", + "https://github.com/:amtoine/scripts", + "0.1.0", + nu-scripts + ], + [ + nu-sound-manager, + "0.1.0", + "https://github.com/:amtoine/scripts", + "0.1.0", + nu-sound-manager + ], + [ + nu-zellij, + "0.1.0", + "https://github.com/:amtoine/zellij-layouts", + "0.1.0", + nu-zellij + ], + [ + nu-hooks, + "0.1.0", + "https://github.com/:nushell/nu_scripts", + "0.1.0", + nu-hooks + ], + [ + nu-themes, + "0.1.0", + "https://github.com/:nushell/nu_scripts", + "0.1.0", + themes + ], + [ + nupm, + "0.1.0", + "https://github.com/:nushell/nupm", + "0.1.0", + . + ], + [ + tmux-sessionizer, + "0.1.0", + "https://github.com/:amtoine/tmux-sessionizer", + "0.1.0", + . ] ] } From f6d1992d4c436cdbe52b012a68e32dc0c5ebd4bd Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 18 Feb 2024 16:40:30 +0100 Subject: [PATCH 2/5] remove the old `index.nuon` --- index.nuon | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 index.nuon diff --git a/index.nuon b/index.nuon deleted file mode 100644 index e57ac2d..0000000 --- a/index.nuon +++ /dev/null @@ -1,24 +0,0 @@ -[ - { package: "github.com:FMotalleb/nu_plugin_audio_hook" }, - { package: "github.com:FMotalleb/nu_plugin_clipboard" }, - { package: "github.com:FMotalleb/nu_plugin_desktop_notifications" }, - { package: "github.com:FMotalleb/nu_plugin_image" }, - { package: "github.com:FMotalleb/nu_plugin_port_list" }, - { package: "github.com:FMotalleb/nu_plugin_port_scan" }, - { package: "github.com:FMotalleb/nu_plugin_qr_maker" }, - { package: "github.com:amtoine/nu-git-manager", dir: "pkgs/nu-git-manager" }, - { package: "github.com:amtoine/nu-git-manager", dir: "pkgs/nu-git-manager-sugar" }, - { package: "github.com:amtoine/nu-pomodoro" }, - { package: "github.com:amtoine/nu-right-prompt" }, - { package: "github.com:amtoine/nu_plugin_explore" }, - { package: "github.com:amtoine/scripts", dir: "nu-clippy" }, - { package: "github.com:amtoine/scripts", dir: "nu-logout" }, - { package: "github.com:amtoine/scripts", dir: "nu-monitor-manager" }, - { package: "github.com:amtoine/scripts", dir: "nu-scripts" }, - { package: "github.com:amtoine/scripts", dir: "nu-sound-manager" }, - { package: "github.com:amtoine/zellij-layouts", dir: "nu-zellij" }, - { package: "github.com:nushell/nu_scripts", dir: "nu-hooks" }, - { package: "github.com:nushell/nu_scripts", dir: "themes" }, - { package: "github.com:nushell/nupm" }, - { package: "github.com:amtoine/tmux-sessionizer.nu" }, -] From 0b01d4615802df89dd3727c39e57576156ab39fa Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 18 Feb 2024 16:46:57 +0100 Subject: [PATCH 3/5] fix the urls in the registry --- registry.nuon | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/registry.nuon b/registry.nuon index dd45203..0975b63 100644 --- a/registry.nuon +++ b/registry.nuon @@ -36,154 +36,154 @@ [ nu_plugin_audio_hook, "0.1.12", - "https://github.com/:FMotalleb/nu_plugin_audio_hook", + "https://github.com/FMotalleb/nu_plugin_audio_hook", "0.1.12", . ], [ nu_plugin_clipboard, "0.3.4", - "https://github.com/:FMotalleb/nu_plugin_clipboard", + "https://github.com/FMotalleb/nu_plugin_clipboard", "0.3.4", . ], [ nu_plugin_desktop_notifications, "1.0.7", - "https://github.com/:FMotalleb/nu_plugin_desktop_notifications", + "https://github.com/FMotalleb/nu_plugin_desktop_notifications", "1.0.7", . ], [ nu_plugin_image, "0.3.2", - "https://github.com/:FMotalleb/nu_plugin_image", + "https://github.com/FMotalleb/nu_plugin_image", "0.3.2", . ], [ nu_plugin_port_list, "1.2.10", - "https://github.com/:FMotalleb/nu_plugin_port_list", + "https://github.com/FMotalleb/nu_plugin_port_list", "1.2.10", . ], [ nu_plugin_port_scan, "1.0.10", - "https://github.com/:FMotalleb/nu_plugin_port_scan", + "https://github.com/FMotalleb/nu_plugin_port_scan", "1.0.10", . ], [ nu_plugin_qr_maker, "1.0.2", - "https://github.com/:FMotalleb/nu_plugin_qr_maker", + "https://github.com/FMotalleb/nu_plugin_qr_maker", "1.0.2", . ], [ nu-git-manager, "0.6.0", - "https://github.com/:amtoine/nu-git-manager", + "https://github.com/amtoine/nu-git-manager", "0.6.0", pkgs/nu-git-manager ], [ nu-git-manager-sugar, "0.6.0", - "https://github.com/:amtoine/nu-git-manager", + "https://github.com/amtoine/nu-git-manager", "0.6.0", pkgs/nu-git-manager-sugar ], [ nu-pomodoro, "0.1.0", - "https://github.com/:amtoine/nu-pomodoro", + "https://github.com/amtoine/nu-pomodoro", "0.1.0", . ], [ nu-right-prompt, "0.1.0", - "https://github.com/:amtoine/nu-right-prompt", + "https://github.com/amtoine/nu-right-prompt", "0.1.0", . ], [ nu_plugin_explore, "0.1.2", - "https://github.com/:amtoine/nu_plugin_explore", + "https://github.com/amtoine/nu_plugin_explore", "0.1.2", . ], [ nu-clippy, "0.1.0", - "https://github.com/:amtoine/scripts", + "https://github.com/amtoine/scripts", "0.1.0", nu-clippy ], [ nu-logout, "0.1.0", - "https://github.com/:amtoine/scripts", + "https://github.com/amtoine/scripts", "0.1.0", nu-logout ], [ nu-monitor-manager, "0.1.0", - "https://github.com/:amtoine/scripts", + "https://github.com/amtoine/scripts", "0.1.0", nu-monitor-manager ], [ nu-scripts, "0.1.0", - "https://github.com/:amtoine/scripts", + "https://github.com/amtoine/scripts", "0.1.0", nu-scripts ], [ nu-sound-manager, "0.1.0", - "https://github.com/:amtoine/scripts", + "https://github.com/amtoine/scripts", "0.1.0", nu-sound-manager ], [ nu-zellij, "0.1.0", - "https://github.com/:amtoine/zellij-layouts", + "https://github.com/amtoine/zellij-layouts", "0.1.0", nu-zellij ], [ nu-hooks, "0.1.0", - "https://github.com/:nushell/nu_scripts", + "https://github.com/nushell/nu_scripts", "0.1.0", nu-hooks ], [ nu-themes, "0.1.0", - "https://github.com/:nushell/nu_scripts", + "https://github.com/nushell/nu_scripts", "0.1.0", themes ], [ nupm, "0.1.0", - "https://github.com/:nushell/nupm", + "https://github.com/nushell/nupm", "0.1.0", . ], [ tmux-sessionizer, "0.1.0", - "https://github.com/:amtoine/tmux-sessionizer", + "https://github.com/amtoine/tmux-sessionizer", "0.1.0", . ] From b1a704faa714f5431ce36663fefb279d1d4b1fa9 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 18 Feb 2024 16:53:16 +0100 Subject: [PATCH 4/5] fix revisions of amtoine's packages some packages don't have a tag that's the same as the package version, they should use a branch name or a commit hash. --- registry.nuon | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/registry.nuon b/registry.nuon index 0975b63..642bf04 100644 --- a/registry.nuon +++ b/registry.nuon @@ -100,63 +100,63 @@ nu-pomodoro, "0.1.0", "https://github.com/amtoine/nu-pomodoro", - "0.1.0", + "main", . ], [ nu-right-prompt, "0.1.0", "https://github.com/amtoine/nu-right-prompt", - "0.1.0", + "main", . ], [ nu_plugin_explore, "0.1.2", "https://github.com/amtoine/nu_plugin_explore", - "0.1.2", + "4e8cc0b4e359986bc3cb214161f637b18f648d65", . ], [ nu-clippy, "0.1.0", "https://github.com/amtoine/scripts", - "0.1.0", + "b7c3401b4d2019909af203bfe89207aa39d52a1e", nu-clippy ], [ nu-logout, "0.1.0", "https://github.com/amtoine/scripts", - "0.1.0", + "b7c3401b4d2019909af203bfe89207aa39d52a1e", nu-logout ], [ nu-monitor-manager, "0.1.0", "https://github.com/amtoine/scripts", - "0.1.0", + "b7c3401b4d2019909af203bfe89207aa39d52a1e", nu-monitor-manager ], [ nu-scripts, "0.1.0", "https://github.com/amtoine/scripts", - "0.1.0", + "b7c3401b4d2019909af203bfe89207aa39d52a1e", nu-scripts ], [ nu-sound-manager, "0.1.0", "https://github.com/amtoine/scripts", - "0.1.0", + "b7c3401b4d2019909af203bfe89207aa39d52a1e", nu-sound-manager ], [ nu-zellij, "0.1.0", "https://github.com/amtoine/zellij-layouts", - "0.1.0", + "46f4ded194a13b6acfb7b5b25ea9d179e4e74e12", nu-zellij ], [ @@ -184,7 +184,7 @@ tmux-sessionizer, "0.1.0", "https://github.com/amtoine/tmux-sessionizer", - "0.1.0", + "18f5cef534b8b494e4dee645e453231dd5d1bc4c", . ] ] From 0664f581125551d30f9e87e0ee1e50ca8f1dd7e4 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 18 Feb 2024 18:40:55 +0100 Subject: [PATCH 5/5] fix revisions --- registry.nuon | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/registry.nuon b/registry.nuon index 642bf04..da0f1f4 100644 --- a/registry.nuon +++ b/registry.nuon @@ -37,49 +37,49 @@ nu_plugin_audio_hook, "0.1.12", "https://github.com/FMotalleb/nu_plugin_audio_hook", - "0.1.12", + "v0.1.12", . ], [ nu_plugin_clipboard, "0.3.4", "https://github.com/FMotalleb/nu_plugin_clipboard", - "0.3.4", + "27faf8d", . ], [ nu_plugin_desktop_notifications, "1.0.7", "https://github.com/FMotalleb/nu_plugin_desktop_notifications", - "1.0.7", + "7556310", . ], [ nu_plugin_image, "0.3.2", "https://github.com/FMotalleb/nu_plugin_image", - "0.3.2", + "7703e79", . ], [ nu_plugin_port_list, "1.2.10", "https://github.com/FMotalleb/nu_plugin_port_list", - "1.2.10", + "dddd72d", . ], [ nu_plugin_port_scan, "1.0.10", "https://github.com/FMotalleb/nu_plugin_port_scan", - "1.0.10", + "7424a69", . ], [ nu_plugin_qr_maker, "1.0.2", "https://github.com/FMotalleb/nu_plugin_qr_maker", - "1.0.2", + "73bf1e4", . ], [ @@ -163,21 +163,21 @@ nu-hooks, "0.1.0", "https://github.com/nushell/nu_scripts", - "0.1.0", + "f04cb44", nu-hooks ], [ nu-themes, "0.1.0", "https://github.com/nushell/nu_scripts", - "0.1.0", + "f04cb44", themes ], [ nupm, "0.1.0", "https://github.com/nushell/nupm", - "0.1.0", + "29916fc", . ], [