Something went wrong. Try again.
Scaffolds custom tools for a devenv environment
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829function proj --description 'Personal project helpers (devkit scaffold)' set -l template git+https://knot.rtw.run/rtw.run/devkit
if test (count $argv) -eq 0 echo "usage: proj init [DIR]" >&2 return 2 end
switch $argv[1] case init # Optional DIR: create it and cd in before scaffolding. if set -q argv[2] mkdir -p $argv[2]; or return 1 cd $argv[2]; or return 1 end echo "Initializing devkit project in "(pwd)"..." >&2 # --refresh forces re-resolving the branch; without it nix reuses the # cached ref for tarball-ttl (default 1h) and misses new template commits. command nix --extra-experimental-features 'nix-command flakes' \ flake init --refresh -t $template or return 1 echo "Scaffold written. Next: devenv shell" >&2 case '*' printf 'proj: unknown subcommand: %s\n' $argv[1] >&2 echo "usage: proj init [DIR]" >&2 return 2 endend