aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/jshipit/Commands.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/jshipit/Commands.java')
-rw-r--r--src/main/java/io/github/jshipit/Commands.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/main/java/io/github/jshipit/Commands.java b/src/main/java/io/github/jshipit/Commands.java
new file mode 100644
index 0000000..f4d301e
--- /dev/null
+++ b/src/main/java/io/github/jshipit/Commands.java
@@ -0,0 +1,39 @@
+package io.github.jshipit;
+
+import com.beust.jcommander.Parameter;
+import com.beust.jcommander.Parameters;
+
+@Parameters(commandDescription = "Create a container")
+class CommandCreate {
+ @Parameter(names = {"--name", "-n"}, description = "Name of the container")
+ public String containerName;
+
+ @Parameter(names = {"--image", "-i"}, description = "Image of the container")
+ public String containerImage;
+
+ @Parameter(names = {"--tag", "-t"}, description = "Tag of the container")
+ public String containerTag;
+
+ @Parameter(names = {"--api-repo", "-a"}, description = "API repository of the container")
+ public String containerApiRepo;
+
+ @Parameter(names = {"--repo", "-r"}, description = "Repository of the container")
+ public String containerRepo;
+
+}
+
+@Parameters(commandDescription = "Pull a container image")
+class CommandPull {
+ @Parameter(names = {"--image", "-i"}, description = "Image of the container")
+ public String containerImage;
+
+ @Parameter(names = {"--tag", "-t"}, description = "Tag of the container")
+ public String containerTag;
+
+ @Parameter(names = {"--api-repo", "-a"}, description = "API repository of the container")
+ public String containerApiRepo;
+
+ @Parameter(names = {"--repo", "-r"}, description = "Repository of the container")
+ public String containerRepo;
+
+}