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: ...@@ -110,10 +110,10 @@ Output:
``` {.txt} ``` {.txt}
Usage: argotk.hs helloworld [--application APP] Usage: argotk.hs helloworld [--application APP]
[--container_name ARGO_CONTAINER_UUID] [--container_name ARGO_CONTAINER_UUID]
[--output FILE] [--manifest_directory FILE] [--output_dir DIR] [--manifest_directory DIR]
[--manifest_name FILE] [--cmd_out FILE] [--manifest_name FILENAME] [--cmd_out FILENAME]
[--cmd_err FILE] [--daemon_out FILE] [--cmd_err FILENAME] [--daemon_out FILENAME]
[--daemon_err FILE] [--nrm_log FILE] [--daemon_err FILENAME] [--nrm_log FILENAME]
[--message_daemon_stdout STRING] [--message_daemon_stdout STRING]
[--message_daemon_stderr STRING] [--message_daemon_stderr STRING]
[--message_cmd_stdout STRING] [--message_cmd_stdout STRING]
...@@ -126,40 +126,41 @@ Available options: ...@@ -126,40 +126,41 @@ Available options:
inherited. (default: "echo") inherited. (default: "echo")
--container_name ARGO_CONTAINER_UUID --container_name ARGO_CONTAINER_UUID
Container name (default: "testContainer") Container name (default: "testContainer")
--output FILE Working directory. (default: FilePath "_output") --output_dir DIR Working directory. (default: FilePath "_output")
--manifest_directory FILE --manifest_directory DIR Manifest lookup
Manifest lookup
directory (default: FilePath "/nix/store/9hbj77178wrp2pv8qs6d063afhdymgk2-manifests") directory (default: FilePath "/nix/store/9hbj77178wrp2pv8qs6d063afhdymgk2-manifests")
--manifest_name FILE Manifest basename (default: FilePath "basic.json") --manifest_name FILENAME Manifest file basename (relative to
--cmd_out FILE Output file, application --manifest_directory) (default: FilePath "basic.json")
--cmd_out FILENAME Output file (relative to --output_dir), application
stdout (default: FilePath "cmd_out.log") 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") 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") 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") 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 --message_daemon_stdout STRING
The appearance of this character string in the daemon The appearance of this character string in the daemon
stdout will be monitored during execution and the stdout will be monitored during execution. When
stack will be killed when observing it, returning a observed, the stack will be killed and a return code
successful exit code. of 0 will be returned.
--message_daemon_stderr STRING --message_daemon_stderr STRING
The appearance of this character string in the daemon The appearance of this character string in the daemon
stderr will be monitored during execution and the stdout will be monitored during execution. When
stack will be killed when observing it, returning a observed, the stack will be killed and a return code
successful exit code. of 0 will be returned.
--message_cmd_stdout STRING --message_cmd_stdout STRING
The appearance of this character string in the cmd The appearance of this character string in the daemon
stdout will be monitored during execution and the stdout will be monitored during execution. When
stack will be killed when observing it, returning a observed, the stack will be killed and a return code
successful exit code. (default: "Hello-Moto") of 0 will be returned. (default: "Hello-Moto")
--message_cmd_stderr STRING --message_cmd_stderr STRING
The appearance of this character string in the cmd The appearance of this character string in the daemon
stderr will be monitored during execution and the stdout will be monitored during execution. When
stack will be killed when observing it, returning a observed, the stack will be killed and a return code
successful exit code. (default: "Hello-Moto") of 0 will be returned. (default: "Hello-Moto")
-h,--help Show this help text -h,--help Show this help text
``` ```
......
...@@ -68,58 +68,58 @@ parseExtendStackArgs StackArgs {..} = do ...@@ -68,58 +68,58 @@ parseExtendStackArgs StackArgs {..} = do
<> value containerName <> value containerName
) )
workingDirectory <- strOption workingDirectory <- strOption
( long "output" ( long "output_dir"
<> metavar "FILE" <> metavar "DIR"
<> help "Working directory." <> help "Working directory."
<> showDefault <> showDefault
<> value workingDirectory <> value workingDirectory
) )
manifestDir <- strOption manifestDir <- strOption
( long "manifest_directory" ( long "manifest_directory"
<> metavar "FILE" <> metavar "DIR"
<> help "Manifest lookup directory" <> help "Manifest lookup directory"
<> showDefault <> showDefault
<> value manifestDir <> value manifestDir
) )
manifestName <- strOption manifestName <- strOption
( long "manifest_name" ( long "manifest_name"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Manifest basename" <> help "Manifest file basename (relative to --manifest_directory)"
<> showDefault <> showDefault
<> value manifestName <> value manifestName
) )
cmd_out <- strOption cmd_out <- strOption
( long "cmd_out" ( long "cmd_out"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Output file, application stdout" <> help "Output file (relative to --output_dir), application stdout"
<> showDefault <> showDefault
<> value cmd_out <> value cmd_out
) )
cmd_err <- strOption cmd_err <- strOption
( long "cmd_err" ( long "cmd_err"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Output file, application stderr" <> help "Output file (relative to --output_dir), application stderr"
<> showDefault <> showDefault
<> value cmd_err <> value cmd_err
) )
daemon_out <- strOption daemon_out <- strOption
( long "daemon_out" ( long "daemon_out"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Output file, daemon stdout" <> help "Output file (relative to --output_dir), daemon stdout"
<> showDefault <> showDefault
<> value daemon_out <> value daemon_out
) )
daemon_err <- strOption daemon_err <- strOption
( long "daemon_err" ( long "daemon_err"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Output file, daemon stderr" <> help "Output file (relative to --output_dir), daemon stderr"
<> showDefault <> showDefault
<> value daemon_err <> value daemon_err
) )
nrm_log <- strOption nrm_log <- strOption
( long "nrm_log" ( long "nrm_log"
<> metavar "FILE" <> metavar "FILENAME"
<> help "Output file, daemon log" <> help "Output file (relative to --output_dir), daemon log"
<> showDefault <> showDefault
<> value nrm_log <> value nrm_log
) )
...@@ -128,8 +128,8 @@ parseExtendStackArgs StackArgs {..} = do ...@@ -128,8 +128,8 @@ parseExtendStackArgs StackArgs {..} = do
<> metavar "STRING" <> metavar "STRING"
<> help <> help
"The appearance of this character string in the daemon stdout \ "The appearance of this character string in the daemon stdout \
\ will be monitored during execution and the stack will be \ \ will be monitored during execution. When observed, the \
\ killed when observing it, returning a successful exit code." \ stack will be killed and a return code of 0 will be returned."
<> showDefault <> showDefault
<> maybe mempty value messageDaemonOut <> maybe mempty value messageDaemonOut
) )
...@@ -137,9 +137,9 @@ parseExtendStackArgs StackArgs {..} = do ...@@ -137,9 +137,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_daemon_stderr" ( long "message_daemon_stderr"
<> metavar "STRING" <> metavar "STRING"
<> help <> help
"The appearance of this character string in the daemon stderr \ "The appearance of this character string in the daemon stdout \
\ will be monitored during execution and the stack will be \ \ will be monitored during execution. When observed, the \
\ killed when observing it, returning a successful exit code." \ stack will be killed and a return code of 0 will be returned."
<> showDefault <> showDefault
<> maybe mempty value messageDaemonErr <> maybe mempty value messageDaemonErr
) )
...@@ -147,9 +147,9 @@ parseExtendStackArgs StackArgs {..} = do ...@@ -147,9 +147,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_cmd_stdout" ( long "message_cmd_stdout"
<> metavar "STRING" <> metavar "STRING"
<> help <> help
"The appearance of this character string in the cmd stdout \ "The appearance of this character string in the daemon stdout \
\ will be monitored during execution and the stack will be \ \ will be monitored during execution. When observed, the \
\ killed when observing it, returning a successful exit code." \ stack will be killed and a return code of 0 will be returned."
<> showDefault <> showDefault
<> maybe mempty value messageCmdOut <> maybe mempty value messageCmdOut
) )
...@@ -157,9 +157,9 @@ parseExtendStackArgs StackArgs {..} = do ...@@ -157,9 +157,9 @@ parseExtendStackArgs StackArgs {..} = do
( long "message_cmd_stderr" ( long "message_cmd_stderr"
<> metavar "STRING" <> metavar "STRING"
<> help <> help
"The appearance of this character string in the cmd stderr \ "The appearance of this character string in the daemon stdout \
\ will be monitored during execution and the stack will be \ \ will be monitored during execution. When observed, the \
\ killed when observing it, returning a successful exit code." \ stack will be killed and a return code of 0 will be returned."
<> showDefault <> showDefault
<> maybe mempty value messageCmdErr <> 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