E5P4AJWVWQAEJE3VOWHWYY2RUV72GXEYBZFRXDSEGAYKCHS2JP3AC
#!/usr/bin/env -S nu --stdin
export def smt [
type: string
msg: string
target?: string
name?: string = "pijul"
] {
let message = if $target != null { $"($type)\(($target)\): ($msg)" } else { $"($type): ($msg)" }
match $name {
"pijul" => { pijul record -m $"($message)" }
"git" => { git commit -m $"($message)" }
}
}