this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(commit): wait for message if not given

dusk 96866256 bf8f2788

+4 -2
+4 -2
commit.nu
··· 12 12 13 13 14 14 def main [ 15 - msg: string 15 + _msg?: string 16 16 --type (-t): string 17 17 --scope (-s): string 18 18 ...rest 19 19 ] { 20 + let msg: string = unwrap-or-else $_msg { input 'enter commit message: ' } 21 + 20 22 let types = ["feat" "build" "ci" "fix" "refactor" "chore" "style"] 21 23 let hosts: list<string> = (nix eval ".#nixosConfigurations" --apply builtins.attrNames --json --quiet | from json) 22 - let scopes = $hosts ++ ["qol" "treewide" "deploy"] 24 + let scopes = $hosts ++ ["qol" "treewide" "deploy" "commit"] 23 25 24 26 let ty: string = unwrap-or-else $type { $types | input list 'choose type' --fuzzy } 25 27 let scp: string = unwrap-or-else $scope { $scopes | input list 'choose scope' --fuzzy }