Skip to content

Commit 3a1531f

Browse files
authored
Merge pull request #288 from vaibhavsagar/vs/nom-flake-subcommand
Add 'nom flake' subcommand
2 parents 221b9ba + 0cf2d57 commit 3a1531f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

exe/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ runApp = \cases
9393
"nom" ("develop" : args) -> do
9494
exitOnFailure =<< runMonitoredCommand defaultConfig{silent = True} (proc "nix" ("develop" : withJSON (replaceCommandWithExit args)))
9595
exitWith =<< runProcess (proc "nix" ("develop" : args))
96+
"nom" ("flake" : args) -> exitWith =<< runMonitoredCommand defaultConfig (proc "nix" ("flake" : withJSON args))
9697
"nom" [] -> do
9798
finalState <- monitorHandle OldStyleInput defaultConfig{piping = True} stdin
9899
if CMap.size finalState.fullSummary.failedBuilds + length finalState.nixErrors == 0

0 commit comments

Comments
 (0)