Skip to content

Commit cc62dd7

Browse files
authored
don't return anything from toolkit command (#992)
i get the following LSP error in my editor, because it's true `main` does not return a `string` 🤔 ![image](https://github.com/user-attachments/assets/787f62f8-ef66-4ac4-ba30-c396d3cdd4d2) in this PR, i propose to truely return `nothing` from this _main_ command by `print`ing the help page. ### alternative we could also change the signature to `nothing -> string`
1 parent b5385a2 commit cc62dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolkit.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export def "check pr" [
3535
}
3636

3737
# View subcommands.
38-
export def main []: nothing -> nothing {
38+
export def main []: nothing -> string {
3939
help toolkit
4040
}
4141

0 commit comments

Comments
 (0)