Skip to content
Snippets Groups Projects
Commit 10397db8 authored by Martin Vogel's avatar Martin Vogel
Browse files

refactor: add optional config param to all commands (planning#1796)

parent 442ae9b1
No related branches found
No related tags found
1 merge request!77#1796 CLI Erweiterungen
......@@ -16,6 +16,9 @@ public class GetAllSubmissionsCommand {
public static final String GET_ALL_CMD_NAME = "all";
@Parameter(names = { "--config" }, description = "Path to the config yaml", arity = 1)
public String config;
@Parameter(names = { "--destinationId" }, description = "Unique destination identifier in UUID format", converter = UUIDConverter.class, validateWith = UUIDValidator.class, arity = 1, required = true)
public UUID destinationId;
......
......@@ -17,6 +17,9 @@ public class GetOneSubmissionCommand {
public static final String GET_CMD_NAME = "get";
@Parameter(names = { "--config" }, description = "Path to the config yaml", arity = 1)
public String config;
@Parameter(names = { "--submissionId" }, description = "Unique submission identifier in UUID format", converter = UUIDConverter.class, validateWith = UUIDValidator.class, arity = 1, required = true)
public UUID submissionId;
......
......@@ -16,6 +16,9 @@ public class ListAllSubmissionsCommand {
public static final String LIST_CMD_NAME = "list";
@Parameter(names = { "--config" }, description = "Path to the config yaml", arity = 1)
public String config;
@Parameter(names = { "--destinationId" }, description = "Unique destination identifier in UUID format", converter = UUIDConverter.class, validateWith = UUIDValidator.class, arity = 1, required = true)
public UUID destinationId;
}
......@@ -12,6 +12,9 @@ public class SendBatchCommand {
public static final String SEND_BATCH_CMD_NAME = "batch";
@Parameter(names = { "--config" }, description = "Path to the config yaml", arity = 1)
public String config;
@Parameter(names = { "--data" }, description = "Path to submission data as csv", arity = 1, required = true)
public String dataPath;
......
......@@ -22,9 +22,11 @@ public class SendSubmissionCommand {
public static final String SEND_CMD_NAME = "send";
@Parameter(names = { "--config" }, description = "Path to the config yaml", arity = 1)
public String config;
@Parameter(names = {"--destinationId"}, converter = UUIDConverter.class, description = "Unique destination identifier in UUID format", validateWith = UUIDValidator.class, arity = 1, required = true)
public
UUID destinationId;
public UUID destinationId;
@Parameter(names = {"--serviceName"}, arity = 1, description = "Name of the service type", required = true)
public String serviceName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment