Skip to content

Commit

Permalink
docs: justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Aug 1, 2024
1 parent 5d69019 commit a8f613e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# just is a command runner, Justfile is very similar to Makefile, but simpler.

# use nushell for shell commands
# Use nushell for shell commands
# To usage this justfile, you need to enter a shell with just & nushell installed:
#
# nix shell nixpkgs#just nixpkgs#nushell
set shell := ["nu", "-c"]

utils_nu := absolute_path("utils.nu")
Expand All @@ -16,7 +19,7 @@ utils_nu := absolute_path("utils.nu")
test:
nix eval .#evalTests --show-trace --print-build-logs --verbose

# update all the flake inputs
# Update all the flake inputs
[group('nix')]
up:
nix flake update
Expand Down Expand Up @@ -52,13 +55,13 @@ gc:
[linux]
[group('nix')]
shell:
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#just nixpkgs#nushell nixpkgs#colmena
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#colmena

# Enter a shell session which has all the necessary tools for this flake
[macos]
[group('nix')]
shell:
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#just nixpkgs#nushell
nix shell nixpkgs#git nixpkgs#neovim

[group('nix')]
fmt:
Expand Down

0 comments on commit a8f613e

Please sign in to comment.