Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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)' *
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