Skip to content

Commit

Permalink
flake/devshell: forward cli args to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Mar 4, 2024
1 parent 8a33054 commit 8b0eba5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake-modules/dev/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
{
name = "checks";
help = "Run all nixvim checks";
command = "nix flake check";
command = "nix flake check '$@'";
}
{
name = "tests";
help = "Run nixvim tests";
command = ''
echo "=> Running nixvim tests for the '${system}' architecture..."
${nix} build .#checks.${system}.tests
${nix} build .#checks.${system}.tests "$@"
'';
}
{
Expand All @@ -41,7 +41,7 @@
command = ''
echo "=> Building nixvim documentation..."
${nix} build .#docs
${nix} build .#docs "$@"
'';
}
{
Expand Down

0 comments on commit 8b0eba5

Please sign in to comment.