Rename
This commit is contained in:
parent
81887ba633
commit
44df36673c
3 changed files with 5 additions and 5 deletions
|
@ -146,7 +146,7 @@ runEvalAndDC cmd dopts opts = do
|
||||||
|
|
||||||
runCat :: CommonOptions -> IO ()
|
runCat :: CommonOptions -> IO ()
|
||||||
runCat co = do
|
runCat co = do
|
||||||
v <- Arion.Nix.evaluate EvaluationArgs
|
v <- Arion.Nix.evaluateComposition EvaluationArgs
|
||||||
{ evalUid = 0 -- TODO
|
{ evalUid = 0 -- TODO
|
||||||
, evalModules = files co
|
, evalModules = files co
|
||||||
, evalPkgs = pkgs co
|
, evalPkgs = pkgs co
|
||||||
|
|
|
@ -33,8 +33,8 @@ data EvaluationArgs = EvaluationArgs
|
||||||
, evalUserArgs :: [Text]
|
, evalUserArgs :: [Text]
|
||||||
}
|
}
|
||||||
|
|
||||||
evaluate :: EvaluationArgs -> IO Value
|
evaluateComposition :: EvaluationArgs -> IO Value
|
||||||
evaluate ea = do
|
evaluateComposition ea = do
|
||||||
evalComposition <- getDataFileName "nix/eval-composition.nix"
|
evalComposition <- getDataFileName "nix/eval-composition.nix"
|
||||||
let commandArgs =
|
let commandArgs =
|
||||||
[ "--eval"
|
[ "--eval"
|
||||||
|
|
|
@ -18,8 +18,8 @@ import qualified Data.Aeson.Encode.Pretty
|
||||||
import Data.Char (isSpace)
|
import Data.Char (isSpace)
|
||||||
|
|
||||||
spec :: Spec
|
spec :: Spec
|
||||||
spec = describe "evaluate" $ it "matches an example" $ do
|
spec = describe "evaluateComposition" $ it "matches an example" $ do
|
||||||
x <- Arion.Nix.evaluate EvaluationArgs
|
x <- Arion.Nix.evaluateComposition EvaluationArgs
|
||||||
{ evalUid = 123
|
{ evalUid = 123
|
||||||
, evalModules = NEL.fromList
|
, evalModules = NEL.fromList
|
||||||
["src/haskell/testdata/Arion/NixSpec/arion-compose.nix"]
|
["src/haskell/testdata/Arion/NixSpec/arion-compose.nix"]
|
||||||
|
|
Loading…
Reference in a new issue