From 6b048d8f82d1f847dc559b61893caae7641276da Mon Sep 17 00:00:00 2001 From: SuaveIV Date: Mon, 13 Apr 2026 18:01:11 -0400 Subject: [PATCH 1/4] feat: enhance release process with sync check and version tagging --- Justfile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index c3fdd0b..5ce4ebc 100644 --- a/Justfile +++ b/Justfile @@ -1,9 +1,15 @@ # nu_plugin_audio justfile +set shell := ["nu", "-c"] # list available recipes default: @just --list +# verify if just is using nushell +test-shell: + @echo $"Shell is (if ($nu != null) { 'Nushell' } else { 'Unknown' })" + @echo $"Version: (version | get version)" + # check formatting and clippy (run 'just fix' to auto-fix) check: -cargo fmt --check @@ -56,6 +62,15 @@ release-dry: # publish release to crates.io and push tag to github release: + @echo "Ensuring cargo-dist is in sync..." + dist init --yes + @if (git status --porcelain .github/workflows/release.yml dist-workspace.toml); then \ + echo "Error: cargo-dist files were out of sync and have been updated."; \ + echo "Please commit these changes before running 'just release' again."; \ + exit 1; \ + fi cargo smart-release --update-crates-index --execute --changelog-without commit-statistics --no-tag - git tag v$(cargo pkgid | cut -d# -f2) - git push origin v$(cargo pkgid | cut -d# -f2) + @$version = (cargo pkgid | str replace -r '.*#' '' | str replace -r '.*:' ''); \ + git tag $"v($version)" -m $"Release v($version)"; \ + git push origin main; \ + git push origin $"v($version)" From dbc6d7b214553d82bd5d74290a931142042ad263 Mon Sep 17 00:00:00 2001 From: SuaveIV Date: Tue, 14 Apr 2026 21:14:54 -0400 Subject: [PATCH 2/4] fix(meta): allow Any input for 'sound meta' and fix description --- src/audio_meta.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio_meta.rs b/src/audio_meta.rs index 1fe27ca..d660e14 100644 --- a/src/audio_meta.rs +++ b/src/audio_meta.rs @@ -70,11 +70,11 @@ impl SimplePluginCommand for SoundMetaGetCmd { fn signature(&self) -> Signature { Signature::new("sound meta") .input_output_types(vec![ - (Type::Nothing, Type::Record(vec![].into())), + (Type::Any, Type::Record(vec![].into())), (Type::Binary, Type::Record(vec![].into())), ]) .switch("all", "List all possible frame names", Some('a')) - .optional("File Path", SyntaxShape::Filepath, "file to play") + .optional("File Path", SyntaxShape::Filepath, "file to read") .category(Category::Experimental) } From 9dd085901b5fd14311b87f980af481b079c2f722 Mon Sep 17 00:00:00 2001 From: SuaveIV Date: Tue, 14 Apr 2026 21:24:25 -0400 Subject: [PATCH 3/4] fix: Justfile Nushell syntax and SoundMetaGetCmd type signature --- Justfile | 7 +++---- src/audio_meta.rs | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Justfile b/Justfile index 5ce4ebc..af48bdd 100644 --- a/Justfile +++ b/Justfile @@ -64,13 +64,12 @@ release-dry: release: @echo "Ensuring cargo-dist is in sync..." dist init --yes - @if (git status --porcelain .github/workflows/release.yml dist-workspace.toml); then \ + if (git status --porcelain .github/workflows/release.yml dist-workspace.toml | is-empty) == false { \ echo "Error: cargo-dist files were out of sync and have been updated."; \ echo "Please commit these changes before running 'just release' again."; \ exit 1; \ - fi - cargo smart-release --update-crates-index --execute --changelog-without commit-statistics --no-tag - @$version = (cargo pkgid | str replace -r '.*#' '' | str replace -r '.*:' ''); \ + } cargo smart-release --update-crates-index --execute --changelog-without commit-statistics --no-tag + let version = (cargo pkgid | str replace -r '.*#' '' | str replace -r '.*:' ''); git tag $"v($version)" -m $"Release v($version)"; \ git push origin main; \ git push origin $"v($version)" diff --git a/src/audio_meta.rs b/src/audio_meta.rs index d660e14..f2625e7 100644 --- a/src/audio_meta.rs +++ b/src/audio_meta.rs @@ -71,7 +71,6 @@ impl SimplePluginCommand for SoundMetaGetCmd { Signature::new("sound meta") .input_output_types(vec![ (Type::Any, Type::Record(vec![].into())), - (Type::Binary, Type::Record(vec![].into())), ]) .switch("all", "List all possible frame names", Some('a')) .optional("File Path", SyntaxShape::Filepath, "file to read") From cbcb6fbfc48a7f9d838d59ec450a6cf7a0047d25 Mon Sep 17 00:00:00 2001 From: SuaveIV Date: Tue, 14 Apr 2026 21:43:08 -0400 Subject: [PATCH 4/4] Update Justfile Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- Justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index af48bdd..5ae8c50 100644 --- a/Justfile +++ b/Justfile @@ -68,8 +68,9 @@ release: echo "Error: cargo-dist files were out of sync and have been updated."; \ echo "Please commit these changes before running 'just release' again."; \ exit 1; \ - } cargo smart-release --update-crates-index --execute --changelog-without commit-statistics --no-tag - let version = (cargo pkgid | str replace -r '.*#' '' | str replace -r '.*:' ''); + }; \ + cargo smart-release --update-crates-index --execute --changelog-without commit-statistics --no-tag; \ + let version = (cargo pkgid | str replace -r '.*#' '' | str replace -r '.*:' ''); \ git tag $"v($version)" -m $"Release v($version)"; \ git push origin main; \ git push origin $"v($version)"