1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

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`
This commit is contained in:
Antoine Stevan 2024-12-12 15:05:51 +01:00 committed by GitHub
parent b5385a2af0
commit cc62dd7f0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ export def "check pr" [
} }
# View subcommands. # View subcommands.
export def main []: nothing -> nothing { export def main []: nothing -> string {
help toolkit help toolkit
} }