aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/jshipit/Commands.java
blob: f4d301e9529c557aafbf01cdb1ca779a1b33ad2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;

}