Skip to content

Commit

Permalink
chore: Add short command/option aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Oct 22, 2023
1 parent 0f6eeea commit 200ef6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import picocli.CommandLine.Command;

@Command(name = "release",
aliases = "rel",
subcommands = {
FoDReleaseListCommand.class,
FoDReleaseGetCommand.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public String getReleaseId(UnirestInstance unirest) {
}

public static class RequiredOption extends AbstractFoDQualifiedReleaseNameOrIdResolverMixin {
@Option(names = {"--release"}, required = true, paramLabel = "id|app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name-or-id")
@Option(names = {"--release", "--rel"}, required = true, paramLabel = "id|app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name-or-id")
@Getter private String qualifiedReleaseNameOrId;
}

public static class OptionalOption extends AbstractFoDQualifiedReleaseNameOrIdResolverMixin {
@Option(names = {"--release"}, required = false, paramLabel = "id|app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name-or-id")
@Option(names = {"--release", "--rel"}, required = false, paramLabel = "id|app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name-or-id")
@Getter private String qualifiedReleaseNameOrId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ public final String getDelimiter() {
}

public static class RequiredOption extends AbstractFoDQualifiedReleaseNameResolverMixin {
@Option(names = {"--release"}, required = true, paramLabel = "app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name")
@Option(names = {"--release", "--rel"}, required = true, paramLabel = "app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name")
@Getter private String qualifiedReleaseName;
}

public static class OptionalOption extends AbstractFoDQualifiedReleaseNameResolverMixin {
@Option(names = {"--release"}, required = false, paramLabel = "app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name")
@Option(names = {"--release", "--rel"}, required = false, paramLabel = "app[:ms]:rel", descriptionKey = "fcli.fod.release.resolver.name")
@Getter private String qualifiedReleaseName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public String getAppVersionId(UnirestInstance unirest) {
}

public static class RequiredOption extends AbstractSSCAppVersionResolverMixin {
@Option(names = {"--appversion"}, required = true, descriptionKey = "fcli.ssc.appversion.resolver.nameOrId")
@Option(names = {"--appversion", "--av"}, required = true, descriptionKey = "fcli.ssc.appversion.resolver.nameOrId")
@Getter private String appVersionNameOrId;
}

Expand Down

0 comments on commit 200ef6f

Please sign in to comment.