Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Reis
argotest
Commits
646d42f7
Commit
646d42f7
authored
Dec 20, 2018
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature] improved output command printing.
parent
7e61d525
Pipeline
#4749
passed with stage
in 14 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
argotk.hs
argotk/argotk.hs
+9
-1
No files found.
argotk/argotk.hs
View file @
646d42f7
...
...
@@ -16,6 +16,7 @@ import Options.Applicative
import
System.Posix.Signals
import
Control.Monad
import
Data.Either
import
Data.Maybe
opts
::
StackArgs
->
Parser
(
IO
()
)
opts
sa
=
hsubparser
...
...
@@ -86,7 +87,14 @@ runStack a@StackArgs {..} = sh $ runSimpleStack a >>= \case
FoundMessage
->
printSuccess
"Found message!
\n
"
>>
exit
ExitSuccess
DaemonDied
->
printError
"Daemon died unexpectedly.
\n
"
>>
exit
(
ExitFailure
1
)
CmdDied
->
printError
"Did not find message.
\n
"
>>
exit
(
ExitFailure
1
)
CmdDied
->
do
when
(
or
$
isJust
<$>
[
messageDaemonOut
,
messageDaemonErr
,
messageCmdOut
,
messageCmdErr
]
)
$
printError
"Did not find message.
\n
"
exit
(
ExitFailure
1
)
runClean
::
StackArgs
->
IO
()
runClean
=
sh
.
cleanLeftovers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment