From 85f79bb3716386e7e5fa229cf59339686b434eec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 03:57:36 +0000 Subject: [PATCH 1/3] Initial plan From 6c3dff3be713eb338c1d028fbd53187ba173dfa7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 03:58:54 +0000 Subject: [PATCH 2/3] fix: dynamic mod.nu path in tests, recommend mod.nu in README Co-authored-by: danielbodnar <1790726+danielbodnar@users.noreply.github.com> Agent-Logs-Url: https://github.com/danielbodnar/dagger.nu/sessions/af9bae3d-4462-46d8-9910-dfabe586c1a5 --- README.md | 6 ++++++ tests/completions.test.nu | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae1d7e7..ae84d78 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ nupm install --path . Clone the repo, then add to `config.nu`: +```nushell +use /path/to/dagger.nu/mod.nu * +``` + +Or, if you prefer to load only the completions file directly: + ```nushell use /path/to/dagger.nu/completions/dagger.nu * ``` diff --git a/tests/completions.test.nu b/tests/completions.test.nu index 35251f6..ef5774a 100644 --- a/tests/completions.test.nu +++ b/tests/completions.test.nu @@ -153,8 +153,9 @@ def "test no duplicate externs" [] { def "test mod.nu entry point" [] { # Verify the root mod.nu re-exports everything from completions/ # We load it in a subshell to get an isolated scope reading + let mod-path = ([$env.FILE_PWD ".." "mod.nu"] | path join | path expand) let out = ^nu --no-config-file -c $" - use '/workspaces/code/github.com/danielbodnar/dagger.nu/mod.nu' * + use '($mod-path)' * scope commands | where name =~ '^dagger' | get name | to json " | from json assert ($out | is-not-empty) "mod.nu must re-export dagger commands" From 5cba432f012dfe7eb2cf5390a8d0f403d8c639b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 08:23:57 +0000 Subject: [PATCH 3/3] fix(tests): rename mod-path to mod_path for snake_case consistency Co-authored-by: danielbodnar <1790726+danielbodnar@users.noreply.github.com> Agent-Logs-Url: https://github.com/danielbodnar/dagger.nu/sessions/3240f946-4491-400e-9c07-4ea1ddf3a298 --- tests/completions.test.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/completions.test.nu b/tests/completions.test.nu index ef5774a..171ded8 100644 --- a/tests/completions.test.nu +++ b/tests/completions.test.nu @@ -153,9 +153,9 @@ def "test no duplicate externs" [] { def "test mod.nu entry point" [] { # Verify the root mod.nu re-exports everything from completions/ # We load it in a subshell to get an isolated scope reading - let mod-path = ([$env.FILE_PWD ".." "mod.nu"] | path join | path expand) + let mod_path = ([$env.FILE_PWD ".." "mod.nu"] | path join | path expand) let out = ^nu --no-config-file -c $" - use '($mod-path)' * + use '($mod_path)' * scope commands | where name =~ '^dagger' | get name | to json " | from json assert ($out | is-not-empty) "mod.nu must re-export dagger commands"