diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-25 21:13:25 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-25 22:23:26 +0100 |
| commit | b100f6e64074c761327e1113a0c8afaf74091a23 (patch) | |
| tree | 10d241594cce1f153886c3fe4b6893c1d1f59d5e /src/Command/Log.hs | |
| parent | 5b19d70e6bb70f951e6a7c1670c54db640eaa1d0 (diff) | |
Add Config reference to JobSet
Diffstat (limited to 'src/Command/Log.hs')
| -rw-r--r-- | src/Command/Log.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Command/Log.hs b/src/Command/Log.hs index e48ce8f..438c25e 100644 --- a/src/Command/Log.hs +++ b/src/Command/Log.hs @@ -4,6 +4,7 @@ module Command.Log ( import Control.Monad.IO.Class +import Data.Bifunctor import Data.Text (Text) import Data.Text qualified as T import Data.Text.Lazy qualified as TL @@ -37,7 +38,8 @@ instance Command LogCommand where cmdLog :: LogCommand -> CommandExec () cmdLog (LogCommand ref) = do einput <- getEvalInput - jid <- either (tfail . textEvalError) (return . jobId . fst) =<< + [ jid ] <- either tfail (return . map jobId) =<< + return . either (Left . textEvalError) (first T.pack . jobsetJobsEither) =<< liftIO (runEval (evalJobReference ref) einput) output <- getOutput storageDir <- getStorageDir |