File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ export def main [
176176 }
177177}
178178
179- def guess-url [] -> string {
179+ def guess-url []: nothing -> string {
180180 mut url = (do - i { ^ git remote get-url origin | complete } | get stdout )
181181
182182 if ($url | is-empty ) {
@@ -191,7 +191,7 @@ def guess-url [] -> string {
191191 $url | str trim
192192}
193193
194- def guess-revision [] -> string {
194+ def guess-revision []: nothing -> string {
195195 mut revision = (do - i { ^ git describe -- tags -- abbrev=0 | complete }
196196 | get stdout )
197197
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use utils/package.nu [open-package-file list-package-files]
55# Display status of a package
66export def main [
77 path ?: path # path to the package
8- ] -> record <filename : string > {
8+ ]: nothing -> record <filename : string > {
99 let path = $path | default $env .PWD | path expand
1010
1111 let pkg = open-package-file $path
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export def open-package-file [dir: path] {
3333# Lists files of a package
3434#
3535# This will be useful for file integrity checks
36- export def list-package-files [pkg_dir : path , pkg : record ] -> list <path > {
36+ export def list-package-files [pkg_dir : path , pkg : record ]: nothing -> list <path > {
3737 let activation = match $pkg.type {
3838 ' module' => $' use ($pkg.name )'
3939 ' script' => {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export def search-package [
1515 package : string # Name of the package
1616 -- registry : string # Which registry to use (name or path)
1717 -- exact-match # Searched package name must match exactly
18- ] -> table {
18+ ]: nothing -> table {
1919 let registries = if (not ($registry | is-empty )) and ($registry in $env .NUPM_REGISTRIES ) {
2020 # If $registry is a valid column in $env.NUPM_REGISTRIES, use that
2121 { $registry : ($env .NUPM_REGISTRIES | get $registry ) }
You can’t perform that action at this time.
0 commit comments