GitLab maintenance scheduled for Today, 2019-04-24, from 12:00 to 13:00 CDT - Services will be unavailable during this time.

Commit 5390b9ea authored by Valentin Reis's avatar Valentin Reis

[fix] Updating the CLi arguments and the Readm.

parent 93033187
Pipeline #4744 passed with stage
in 41 seconds
......@@ -110,10 +110,10 @@ Output:
``` {.txt}
Usage: argotk.hs helloworld [--application APP]
[--container_name ARGO_CONTAINER_UUID]
[--output FILE] [--manifest_directory FILE]
[--manifest_name FILE] [--cmd_out FILE]
[--cmd_err FILE] [--daemon_out FILE]
[--daemon_err FILE] [--nrm_log FILE]
[--output_dir DIR] [--manifest_directory DIR]
[--manifest_name FILENAME] [--cmd_out FILENAME]
[--cmd_err FILENAME] [--daemon_out FILENAME]
[--daemon_err FILENAME] [--nrm_log FILENAME]
[--message_daemon_stdout STRING]
[--message_daemon_stderr STRING]
[--message_cmd_stdout STRING]
......@@ -126,40 +126,41 @@ Available options:
inherited. (default: "echo")
--container_name ARGO_CONTAINER_UUID
Container name (default: "testContainer")
--output FILE Working directory. (default: FilePath "_output")
--manifest_directory FILE
Manifest lookup
--output_dir DIR Working directory. (default: FilePath "_output")
--manifest_directory DIR Manifest lookup
directory (default: FilePath "/nix/store/9hbj77178wrp2pv8qs6d063afhdymgk2-manifests")
--manifest_name FILE Manifest basename (default: FilePath "basic.json")
--cmd_out FILE Output file, application
--manifest_name FILENAME Manifest file basename (relative to
--manifest_directory) (default: FilePath "basic.json")
--cmd_out FILENAME Output file (relative to --output_dir), application
stdout (default: FilePath "cmd_out.log")
--cmd_err FILE Output file, application
--cmd_err FILENAME Output file (relative to --output_dir), application
stderr (default: FilePath "cmd_err.log")
--daemon_out FILE Output file, daemon
--daemon_out FILENAME Output file (relative to --output_dir), daemon
stdout (default: FilePath "daemon_out.log")
--daemon_err FILE Output file, daemon
--daemon_err FILENAME Output file (relative to --output_dir), daemon
stderr (default: FilePath "daemon_err.log")
--nrm_log FILE Output file, daemon log (default: FilePath "nrm.log")
--nrm_log FILENAME Output file (relative to --output_dir), daemon
log (default: FilePath "nrm.log")
--message_daemon_stdout STRING
The appearance of this character string in the daemon
stdout will be monitored during execution and the
stack will be killed when observing it, returning a
successful exit code.
stdout will be monitored during execution. When
observed, the stack will be killed and a return code
of 0 will be returned.
--message_daemon_stderr STRING
The appearance of this character string in the daemon
stderr will be monitored during execution and the
stack will be killed when observing it, returning a
successful exit code.
stdout will be monitored during execution. When
observed, the stack will be killed and a return code
of 0 will be returned.
--message_cmd_stdout STRING
The appearance of this character string in the cmd
stdout will be monitored during execution and the
stack will be killed when observing it, returning a
successful exit code. (default: "Hello-Moto")
The appearance of this character string in the daemon
stdout will be monitored during execution. When
observed, the stack will be killed and a return code
of 0 will be returned. (default: "Hello-Moto")
--message_cmd_stderr STRING
The appearance of this character string in the cmd
stderr will be monitored during execution and the
stack will be killed when observing it, returning a
successful exit code. (default: "Hello-Moto")
The appearance of this character string in the daemon
stdout will be monitored during execution. When
observed, the stack will be killed and a return code
of 0 will be returned. (default: "Hello-Moto")
-h,--help Show this help text
```
......
......@@ -68,58 +68,58 @@ parseExtendStackArgs StackArgs {..} = do
<> value containerName
)
workingDirectory <- strOption
( long "output"
<> metavar "FILE"
( long "output_dir"
<> metavar "DIR"
<> help "Working directory."
<> showDefault
<> value workingDirectory
)
manifestDir <- strOption
( long "manifest_directory"
<> metavar "FILE"
<> metavar "DIR"
<> help "Manifest lookup directory"
<> showDefault
<> value manifestDir
)
manifestName <- strOption
( long "manifest_name"
<> metavar "FILE"
<> help "Manifest basename"
<> metavar "FILENAME"
<> help "Manifest file basename (relative to --manifest_directory)"
<> showDefault
<> value manifestName
)
cmd_out <- strOption
( long "cmd_out"
<> metavar "FILE"
<> help "Output file, application stdout"
<> metavar "FILENAME"
<> help "Output file (relative to --output_dir), application stdout"
<> showDefault
<> value cmd_out
)
cmd_err <- strOption
( long "cmd_err"
<> metavar "FILE"
<> help "Output file, application stderr"
<> metavar "FILENAME"
<> help "Output file (relative to --output_dir), application stderr"
<> showDefault
<> value cmd_err
)
daemon_out <- strOption
( long "daemon_out"
<> metavar "FILE"
<> help "Output file, daemon stdout"
<> metavar "FILENAME"
<> help "Output file (relative to --output_dir), daemon stdout"
<> showDefault
<> value daemon_out
)
daemon_err <- strOption
( long "daemon_err"
<> metavar "FILE"
<> help "Output file, daemon stderr"
<> metavar "FILENAME"
<> help "Output file (relative to --output_dir), daemon stderr"
<> showDefault
<> value daemon_err
)
nrm_log <- strOption
( long "nrm_log"
<> metavar "FILE"
<> help "Output file, daemon log"
<> metavar "FILENAME"
<> help "Output file (relative to --output_dir), daemon log"
<> showDefault
<> value nrm_log
)
......@@ -128,8 +128,8 @@ parseExtendStackArgs StackArgs {..} = do
<> metavar "STRING"
<> help
"The appearance of this character string in the daemon stdout \
\ will be monitored during execution and the stack will be \
\ killed when observing it, returning a successful exit code."
\ will be monitored during execution. When observed, the \
\ stack will be killed and a return code of 0 will be returned."
<> showDefault
<> maybe mempty value messageDaemonOut
)
......@@ -137,9 +137,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_daemon_stderr"
<> metavar "STRING"
<> help
"The appearance of this character string in the daemon stderr \
\ will be monitored during execution and the stack will be \
\ killed when observing it, returning a successful exit code."
"The appearance of this character string in the daemon stdout \
\ will be monitored during execution. When observed, the \
\ stack will be killed and a return code of 0 will be returned."
<> showDefault
<> maybe mempty value messageDaemonErr
)
......@@ -147,9 +147,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_cmd_stdout"
<> metavar "STRING"
<> help
"The appearance of this character string in the cmd stdout \
\ will be monitored during execution and the stack will be \
\ killed when observing it, returning a successful exit code."
"The appearance of this character string in the daemon stdout \
\ will be monitored during execution. When observed, the \
\ stack will be killed and a return code of 0 will be returned."
<> showDefault
<> maybe mempty value messageCmdOut
)
......@@ -157,9 +157,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_cmd_stderr"
<> metavar "STRING"
<> help
"The appearance of this character string in the cmd stderr \
\ will be monitored during execution and the stack will be \
\ killed when observing it, returning a successful exit code."
"The appearance of this character string in the daemon stdout \
\ will be monitored during execution. When observed, the \
\ stack will be killed and a return code of 0 will be returned."
<> showDefault
<> maybe mempty value messageCmdErr
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment