def "http auto update" [
target: string
destination: path
message: string
] {
http get --raw $target | save --force $destination
git add $destination
git commit -m $message
}
http auto update https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/snippets/nushell.json snippets/nushell.json "update the nushell snippets"