diff options
author | axtloss <axtlos@getcryst.al> | 2023-05-24 23:43:57 +0200 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2023-05-24 23:43:57 +0200 |
commit | 44ea7455e1f440a8df4070604213b390c21e7a3d (patch) | |
tree | 8c0cb535f4cb3588ef8bd610edfb418e15ec0ff2 /src/main/java/io/github/jshipit/Commands.java | |
parent | a881b5319b1a7d03f476231df9c8491fb4cdd451 (diff) | |
download | jshipit-44ea7455e1f440a8df4070604213b390c21e7a3d.tar.gz jshipit-44ea7455e1f440a8df4070604213b390c21e7a3d.tar.bz2 |
Add command line options
Diffstat (limited to 'src/main/java/io/github/jshipit/Commands.java')
-rw-r--r-- | src/main/java/io/github/jshipit/Commands.java | 39 |
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; + +} |