-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: subdirectory layout, mod.nu entry point, test suite #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2981236
c9be662
85f79bb
6c3dff3
5cba432
c9446f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # dagger.nu - Nushell completions and utilities for the Dagger CLI | ||
| # | ||
| # Usage: | ||
| # use /path/to/dagger.nu/mod.nu * | ||
| # | ||
| # Or with nupm (once published): | ||
| # nupm install dagger.nu | ||
|
|
||
| export use completions/dagger.nu * |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,232 @@ | ||||||
| #!/usr/bin/env nu | ||||||
| # tests/completions.test.nu — Test suite for dagger.nu completions | ||||||
| # | ||||||
| # Run: | ||||||
| # nu tests/completions.test.nu | ||||||
| # nu tests/completions.test.nu --verbose | ||||||
| # nu tests/completions.test.nu --test "sdk" | ||||||
|
|
||||||
| use std/assert | ||||||
|
|
||||||
| # Top-level use — brings externs and helpers into parser scope so | ||||||
| # scope commands reflects them and helper calls resolve without a subshell. | ||||||
| use ../completions/dagger.nu * | ||||||
|
||||||
| use ../completions/dagger.nu * | |
| use ($env.FILE_PWD | path join ".." "completions" "dagger.nu") * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README manual install now points users at
use /path/to/dagger.nu/completions/dagger.nu *, but this PR introducesmod.nuspecifically as the stable root entry point. Consider updating the README to recommenduse /path/to/dagger.nu/mod.nu *(and optionally mention the completions file as an alternative) to keep documentation consistent with the new layout and intended public entrypoint.