File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ export def main [
176
176
}
177
177
}
178
178
179
- def guess-url [] -> string {
179
+ def guess-url []: nothing -> string {
180
180
mut url = (do - i { ^ git remote get-url origin | complete } | get stdout )
181
181
182
182
if ($url | is-empty ) {
@@ -191,7 +191,7 @@ def guess-url [] -> string {
191
191
$url | str trim
192
192
}
193
193
194
- def guess-revision [] -> string {
194
+ def guess-revision []: nothing -> string {
195
195
mut revision = (do - i { ^ git describe -- tags -- abbrev=0 | complete }
196
196
| get stdout )
197
197
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use utils/package.nu [open-package-file list-package-files]
5
5
# Display status of a package
6
6
export def main [
7
7
path ?: path # path to the package
8
- ] -> record <filename : string > {
8
+ ]: nothing -> record <filename : string > {
9
9
let path = $path | default $env .PWD | path expand
10
10
11
11
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] {
33
33
# Lists files of a package
34
34
#
35
35
# 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 > {
37
37
let activation = match $pkg.type {
38
38
' module' => $' use ($pkg.name )'
39
39
' script' => {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export def search-package [
15
15
package : string # Name of the package
16
16
-- registry : string # Which registry to use (name or path)
17
17
-- exact-match # Searched package name must match exactly
18
- ] -> table {
18
+ ]: nothing -> table {
19
19
let registries = if (not ($registry | is-empty )) and ($registry in $env .NUPM_REGISTRIES ) {
20
20
# If $registry is a valid column in $env.NUPM_REGISTRIES, use that
21
21
{ $registry : ($env .NUPM_REGISTRIES | get $registry ) }
You can’t perform that action at this time.
0 commit comments