amtoine / nu-git-manager

A collection of Nushell tools to manage Git repositories.
GNU General Public License v3.0
26 stars 2 forks source link

add type annotations to `toolkit.nu` and fix a bug #114

Closed amtoine closed 9 months ago

amtoine commented 9 months ago

this PR adds some type annotations to the toolkit.nu and fixes a bug where running

tk run --interactive

for the first time would give an error

Error:   × Permission denied
    ╭─[/home/amtoine/documents/repos/github.com/amtoine/nu-git-manager/toolkit.nu:58:1]
 58 │
 59 │         "$env.config = {show_banner: false}" | save --force $CONFIG_FILE
    ·                                                             ──────┬─────
    ·                                                                   ╰── No such file or directory (os error 2)
 60 │         "" | save --force $ENV_FILE
    ╰────