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

🐛 fix some parser issues with type signatures (#1001)

When I updated nu to 101, the completions of poetry failed because of a
missing `:`
this
```nu
def "nu-complete poetry python-versions" [] nothing -> list<string> {
```
for this

```nu
def "nu-complete poetry python-versions" []: nothing -> list<string> {
```

Fixed a couple of places and some other parser issues
This commit is contained in:
Auca Coyan 2024-12-26 12:28:18 -03:00 committed by GitHub
parent 43d122448c
commit 4fa48b3e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 45 additions and 41 deletions

View file

@ -64,7 +64,7 @@ def __cwdhist_switching [] {
export def empty-sqlite [] {
# sqlite3 empty.db "VACUUM;"; cat empty.db | gzip | encode base64
'H4sIAAAAAAAAAwsO9MksSVVIyy/KTSxRMGYQYGBkZHBQUGBgYGCEYhhAZhMLGBn0ihbwglgCZOgeBaNgFIyCUTAKRsEoGAWjYBSMglEwCkYBVQAANHgbMAAQAAA='
| decode base64 --binary | gzip -d
| decode base64 | gzip -d
}
export def 'cwd history delete' [cwd] {