summaryrefslogtreecommitdiff
path: root/src/Command/JobId.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-06-29 22:20:10 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-06-30 20:38:25 +0200
commitac70a5f9aebcfd51901740681463d1ac4fa90e33 (patch)
tree353ea6ed5aaea7dab8e12e31b31e039367c4c58b /src/Command/JobId.hs
parentf1beff8cdbf5a2e54ea5e36b6edf337fc45ffc8b (diff)
Explicit JobSet ID
Diffstat (limited to 'src/Command/JobId.hs')
-rw-r--r--src/Command/JobId.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Command/JobId.hs b/src/Command/JobId.hs
index 173f543..096ed56 100644
--- a/src/Command/JobId.hs
+++ b/src/Command/JobId.hs
@@ -52,7 +52,7 @@ cmdJobId :: JobIdCommand -> CommandExec ()
cmdJobId (JobIdCommand JobIdOptions {..} ref) = do
einput <- getEvalInput
out <- getOutput
- JobId ids <- either (tfail . textEvalError) (return . jobId) =<<
+ JobId ids <- either (tfail . textEvalError) (return . jobId . fst) =<<
liftIO (runEval (evalJobReference ref) einput)
outputMessage out $ textJobId $ JobId ids