Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
```
Expand Down
3 changes: 2 additions & 1 deletion tests/completions.test.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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)' *

Copilot AI Mar 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new variable name mod-path is inconsistent with the rest of this test file, which uses snake_case (e.g., all_tests). Consider renaming to mod_path (and updating the interpolation) for consistency and to avoid any potential parsing ambiguity around - in variable references.

Copilot uses AI. Check for mistakes.
scope commands | where name =~ '^dagger' | get name | to json
" | from json
assert ($out | is-not-empty) "mod.nu must re-export dagger commands"
Expand Down
Loading