Skip to content

Commit

Permalink
don't return anything from toolkit command (#992)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
a-stevan authored Dec 12, 2024
1 parent b5385a2 commit cc62dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export def "check pr" [
}

# View subcommands.
export def main []: nothing -> nothing {
export def main []: nothing -> string {
help toolkit
}

Expand Down

0 comments on commit cc62dd7

Please sign in to comment.