all repos — scriptura @ 1be437f25cd089cc0a9b071e3985ca3481219fa7

a corner in $HOME for your scripts

add justfile to assist in development

Alin
commit

1be437f25cd089cc0a9b071e3985ca3481219fa7

parent

9da066792c187c8c3d4b4eb6d7fa2526aff758b0

1 file changed, 26 insertions(+), 0 deletions(-)

changed files
A justfile
@@ -0,0 +1,26 @@
+test: + fish -c "fishtape tests/*.fish" + +build: + nix build . + +run: + fish --init-command "\ + set --prepend fish_complete_path $PWD/completions; \ + set --prepend fish_function_path $PWD/functions" + +release version: + #!/usr/bin/env fish + if not string match --regex "^[0-9]+\.[0-9]+\.[0-9]+\$" "{{ version }}" + echo >&2 "Invalid version format" + return 1 + end + if test -n "$(git status --short)" + echo >&2 "Uncommitted changes" + git status --short + return 1 + end + nix run nixpkgs#sd -- 'version = "[^"]+"' 'version = "{{ version }}"' default.nix + git add default.nix + git commit -m "Release version {{ version }}" + git tag -a "v{{ version }}" -m "Release version {{ version }}"