Skip to content

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Jan 4, 2025

Move internal/nix.cmd and friends to the top-level nix package and export it.

The constructor function is now a Nix.Command method. New commands use Nix.Logger for debug logs and include default arguments from Nix.ExtraArgs.

As a convenience, the package-level Command function calls Default.Command (which uses the default Nix installation found in $PATH).

@gcurtis gcurtis requested review from savil and mikeland73 January 6, 2025 15:06
Move `internal/nix.cmd` and friends to the top-level nix package and
export it.

The constructor function is now a `Nix.Command` method. New commands use
`Nix.Logger` for debug logs and include default arguments from
`Nix.ExtraArgs`.

As a convenience, the package-level `Command` function calls
`Default.Command` (which uses the default Nix installation found in
$PATH).
@gcurtis gcurtis merged commit c0d4d98 into main Jan 6, 2025
29 checks passed
@gcurtis gcurtis deleted the gcurtis/nix-cmd branch January 6, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants