diff --git a/fcli-core/fcli-app/build.gradle b/fcli-core/fcli-app/build.gradle
index 0b30efc94f..fa1372fe36 100644
--- a/fcli-core/fcli-app/build.gradle
+++ b/fcli-core/fcli-app/build.gradle
@@ -5,12 +5,12 @@ apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
implementation project("${fcliCommonRef}")
implementation project("${fcliConfigRef}")
- implementation project("${fcliStateRef}")
+ implementation project("${fcliFoDRef}")
implementation project("${fcliSSCRef}")
- implementation project("${fcliFoDRef}")
implementation project("${fcliSCSastRef}")
implementation project("${fcliSCDastRef}")
implementation project("${fcliToolRef}")
+ implementation project("${fcliLicenseRef}")
implementation project("${fcliUtilRef}")
// Logging dependencies
diff --git a/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/_main/cli/cmd/FCLIRootCommands.java b/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/_main/cli/cmd/FCLIRootCommands.java
index 4083ca4bdb..06d1638bf0 100644
--- a/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/_main/cli/cmd/FCLIRootCommands.java
+++ b/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/_main/cli/cmd/FCLIRootCommands.java
@@ -13,15 +13,15 @@
package com.fortify.cli.app._main.cli.cmd;
import com.fortify.cli.app.FortifyCLIVersionProvider;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.util.DisableTest;
import com.fortify.cli.common.util.DisableTest.TestType;
import com.fortify.cli.config._main.cli.cmd.ConfigCommands;
import com.fortify.cli.fod._main.cli.cmd.FoDCommands;
+import com.fortify.cli.license._main.cli.cmd.LicenseCommands;
import com.fortify.cli.sc_dast._main.cli.cmd.SCDastCommands;
import com.fortify.cli.sc_sast._main.cli.cmd.SCSastCommands;
import com.fortify.cli.ssc._main.cli.cmd.SSCCommands;
-import com.fortify.cli.state._main.cli.cmd.StateCommands;
import com.fortify.cli.tool._main.cli.cmd.ToolCommands;
import com.fortify.cli.util._main.cli.cmd.UtilCommands;
@@ -44,16 +44,16 @@
versionProvider = FortifyCLIVersionProvider.class,
subcommands = {
ConfigCommands.class,
- StateCommands.class,
FoDCommands.class,
SCDastCommands.class,
SCSastCommands.class,
SSCCommands.class,
ToolCommands.class,
+ LicenseCommands.class,
UtilCommands.class
}
)
-public class FCLIRootCommands extends AbstractFortifyCLICommand {
+public class FCLIRootCommands extends AbstractContainerCommand {
// We only want to have the --version option on the top-level fcli command,
@Option(names = {"-V", "--version"}, versionHelp = true, scope = ScopeType.LOCAL, order = -1002)
@DisableTest(TestType.OPT_SHORT_NAME)
diff --git a/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/runner/util/FortifyCLIDynamicInitializer.java b/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/runner/util/FortifyCLIDynamicInitializer.java
index d44fd963ca..786a820d88 100644
--- a/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/runner/util/FortifyCLIDynamicInitializer.java
+++ b/fcli-core/fcli-app/src/main/java/com/fortify/cli/app/runner/util/FortifyCLIDynamicInitializer.java
@@ -19,9 +19,9 @@
import org.slf4j.LoggerFactory;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand.GenericOptionsArgGroup;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand.LogLevel;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand.GenericOptionsArgGroup;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand.LogLevel;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
@@ -111,7 +111,7 @@ private CommandLine createGenericOptionsCommandLine() {
@Command(name = "fcli")
@RequiredArgsConstructor
- public static final class FortifyCLIInitializerCommand extends AbstractFortifyCLICommand implements Runnable {
+ public static final class FortifyCLIInitializerCommand extends AbstractRunnableCommand implements Runnable {
private final Consumer Mixins usually wouldn't implement this interface directly, but instead
* utilize {@link CommandHelperMixin} as it provides some useful utility methods
* related to the the injected {@link CommandSpec}. Injection is handled
- * by {@link AbstractFortifyCLICommand}.
*
This class provides standard {@link IOutputHelper} implementations. Individual - * product modules may provide additional {@link IOutputHelper} implementations as + * product modules may provide additional {@link IOutputHelper} implementations as * needed, extending from one of these classes as appropriate:
*All standard output helper mixins defined in this class are based on {@code TableNoQuery}, except * for the {@code List} class which is based on {@code TableWithQuery}.
- * + * * Every command implementation should use the appropriate {@link IOutputHelper} * (where {@code CMD_NAME} matches the command name), either from the standard implementations * provided in this class, or from the product-specific implementations. Example: - * + * ** @ReflectiveAccess * @Command(name = OutputHelperMixins.List.CMD_NAME) @@ -44,172 +44,173 @@ * ... * } *- * + * *
Here, {@code AbstractMyProductOutputCommand} would extend from {@link AbstractOutputCommand}, * which takes care of displaying the output generated by the command, based on the configured * {@link IOutputHelper} {@link Mixin}.
- * + * * @author rsenden */ public class OutputHelperMixins { public static class Other extends AbstractOutputHelperMixin {} - - + + public static class TableWithQuery extends Other { @Getter @Mixin private OutputWriterWithQueryFactoryMixin outputWriterFactory; - @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.table(); + @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.table(); } - - + + public static class TableNoQuery extends Other { @Getter @Mixin private StandardOutputWriterFactoryMixin outputWriterFactory; - @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.table(); + @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.table(); } - + public static class DetailsNoQuery extends Other { @Getter @Mixin private StandardOutputWriterFactoryMixin outputWriterFactory; - @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.details(); + @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.details(); } - + public static class DetailsWithQuery extends Other { @Getter @Mixin private OutputWriterWithQueryFactoryMixin outputWriterFactory; - @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.details(); + @Getter private StandardOutputConfig basicOutputConfig = StandardOutputConfig.details(); } - - + + public static class Add extends TableNoQuery { public static final String CMD_NAME = "add"; } - - + + public static class Create extends TableNoQuery { public static final String CMD_NAME = "create"; } - + @Command(aliases = {"rm"}) public static class Delete extends TableNoQuery { public static final String CMD_NAME = "delete"; } - + public static class Clear extends TableNoQuery { public static final String CMD_NAME = "clear"; } - + public static class Revoke extends TableNoQuery { public static final String CMD_NAME = "revoke"; } - + @Command(name = "list", aliases = {"ls"}) public static class List extends TableWithQuery { public static final String CMD_NAME = "list"; } - - + + public static class Get extends DetailsNoQuery { public static final String CMD_NAME = "get"; } - + public static class Generate extends DetailsNoQuery { public static final String CMD_NAME = "generate"; } - + public static class GenerateConfig extends TableNoQuery { public static final String CMD_NAME = "generate-config"; } - + public static class Status extends TableNoQuery { public static final String CMD_NAME = "status"; } - - + + public static class Set extends TableNoQuery { public static final String CMD_NAME = "set"; } - - + + public static class Update extends TableNoQuery { public static final String CMD_NAME = "update"; } - - + + public static class Enable extends TableNoQuery { public static final String CMD_NAME = "enable"; } - - + + public static class Disable extends TableNoQuery { public static final String CMD_NAME = "disable"; } - - + + public static class Start extends TableNoQuery { public static final String CMD_NAME = "start"; } - - + + public static class Pause extends TableNoQuery { public static final String CMD_NAME = "pause"; } - - + + public static class Resume extends TableNoQuery { public static final String CMD_NAME = "resume"; } - - + + public static class Cancel extends TableNoQuery { public static final String CMD_NAME = "cancel"; } - + public static class Upload extends TableNoQuery { public static final String CMD_NAME = "upload"; } - - + + public static class Download extends TableNoQuery { public static final String CMD_NAME = "download"; } - - + + public static class Install extends TableNoQuery { public static final String CMD_NAME = "install"; } - - + + public static class Uninstall extends TableNoQuery { public static final String CMD_NAME = "uninstall"; } - + public static class Import extends TableNoQuery { public static final String CMD_NAME = "import"; } - + public static class Export extends TableNoQuery { public static final String CMD_NAME = "export"; } - + public static class Setup extends TableNoQuery { public static final String CMD_NAME = "setup"; } - + public static class WaitFor extends TableNoQuery { public static final String CMD_NAME = "wait-for"; } - + public static class Login extends TableNoQuery { public static final String CMD_NAME = "login"; } - - + + public static class Logout extends TableNoQuery { public static final String CMD_NAME = "logout"; } - + public static class RestCall extends DetailsWithQuery { public static final String CMD_NAME = "call"; } + } diff --git a/fcli-core/fcli-common/src/main/java/com/fortify/cli/common/rest/cli/cmd/AbstractWaitForCommand.java b/fcli-core/fcli-common/src/main/java/com/fortify/cli/common/rest/cli/cmd/AbstractWaitForCommand.java index 7f592ec321..d5abbd9cad 100644 --- a/fcli-core/fcli-common/src/main/java/com/fortify/cli/common/rest/cli/cmd/AbstractWaitForCommand.java +++ b/fcli-core/fcli-common/src/main/java/com/fortify/cli/common/rest/cli/cmd/AbstractWaitForCommand.java @@ -12,7 +12,7 @@ *******************************************************************************/ package com.fortify.cli.common.rest.cli.cmd; -import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand; +import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand; import com.fortify.cli.common.output.cli.mixin.OutputHelperMixins; import com.fortify.cli.common.output.product.IProductHelperSupplier; import com.fortify.cli.common.output.transform.IActionCommandResultSupplier; @@ -28,7 +28,7 @@ import lombok.Getter; import picocli.CommandLine.Mixin; -public abstract class AbstractWaitForCommand extends AbstractFortifyCLICommand implements IActionCommandResultSupplier, IProductHelperSupplier, ISingularSupplier, Runnable { +public abstract class AbstractWaitForCommand extends AbstractRunnableCommand implements IActionCommandResultSupplier, IProductHelperSupplier, ISingularSupplier, Runnable { @Getter @Mixin private OutputHelperMixins.WaitFor outputHelper; @Mixin private WaitHelperControlOptions controlOptions; @Mixin private WaitHelperWaitOptions waitOptions; diff --git a/fcli-core/fcli-common/src/main/java/picocli/AutoComplete.java b/fcli-core/fcli-common/src/main/java/picocli/AutoComplete.java index 64222bb675..05d4149736 100644 --- a/fcli-core/fcli-common/src/main/java/picocli/AutoComplete.java +++ b/fcli-core/fcli-common/src/main/java/picocli/AutoComplete.java @@ -663,6 +663,7 @@ private static String generateFunctionForCommand(String functionName, String com " local curr_word=${COMP_WORDS[COMP_CWORD]}\n" + "%s" + "\n" + + " local extraCompGenOpts=()" + // PATCH for #2068: Add extraCompGenOpts array " local commands=\"%s\"\n" + // local commands="gettingstarted tool" " local flag_opts=\"%s\"\n" + // local flag_opts="--verbose -V -x --extract -t --list" " local arg_opts=\"%s\"\n"; // local arg_opts="--host --option --file -f -u --timeUnit" @@ -674,7 +675,8 @@ private static String generateFunctionForCommand(String functionName, String com " local positionals=\"\"\n" + "%s" + " local IFS=$'\\n'\n" + - " COMPREPLY=( $(compgen -W \"${commands// /$'\\n'}${IFS}${positionals}\" -- \"${curr_word}\") )\n" + + // PATCH for #2068: Add extraCompGenOpts reference to compgen invocation + " COMPREPLY=( $(compgen ${extraCompGenOpts[@]} -W \"${commands// /$'\\n'}${IFS}${positionals}\" -- \"${curr_word}\") )\n" + " fi\n" + "}\n"; @@ -785,6 +787,8 @@ private static String generatePositionalParamsCases(ListThis class is responsible for processing repositories passed to
@@ -80,7 +80,7 @@ public Functional interface defining the process for generating and reporting branch,
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/GitHubPagingHelper.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/GitHubPagingHelper.java
similarity index 96%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/GitHubPagingHelper.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/GitHubPagingHelper.java
index 2100bd1f43..46a80b0fa6 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/GitHubPagingHelper.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/GitHubPagingHelper.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.rest.paging.INextPageUrlProducer;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java
similarity index 92%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java
index 3fee946e5c..c53714fea4 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubAuthorDescriptor.java
@@ -10,14 +10,14 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportAuthorDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java
similarity index 89%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java
index a144dc9a7b..bd0544a229 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubBranchDescriptor.java
@@ -10,11 +10,11 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportBranchDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportBranchDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java
similarity index 92%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java
index 3eaed87c68..333979ec75 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubCommitDescriptor.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import java.time.LocalDateTime;
@@ -19,7 +19,7 @@
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportCommitDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java
similarity index 91%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java
index ea621c8f84..ccca624cab 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubRepositoryDescriptor.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java
similarity index 92%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java
index d8370b4b98..05ee4a3c78 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/github/NcdReportGitHubResultsGenerator.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.github;
+package com.fortify.cli.license.ncd_report.generator.github;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
@@ -21,14 +21,14 @@
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.util.StringUtils;
-import com.fortify.cli.util.ncd_report.collector.INcdReportRepositoryBranchCommitCollector;
-import com.fortify.cli.util.ncd_report.collector.INcdReportRepositoryProcessor;
-import com.fortify.cli.util.ncd_report.collector.NcdReportResultsCollector;
-import com.fortify.cli.util.ncd_report.config.NcdReportCombinedRepoSelectorConfig;
-import com.fortify.cli.util.ncd_report.config.NcdReportGitHubOrganizationConfig;
-import com.fortify.cli.util.ncd_report.config.NcdReportGitHubSourceConfig;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
-import com.fortify.cli.util.ncd_report.generator.AbstractNcdReportUnirestResultsGenerator;
+import com.fortify.cli.license.ncd_report.collector.INcdReportRepositoryBranchCommitCollector;
+import com.fortify.cli.license.ncd_report.collector.INcdReportRepositoryProcessor;
+import com.fortify.cli.license.ncd_report.collector.NcdReportResultsCollector;
+import com.fortify.cli.license.ncd_report.config.NcdReportCombinedRepoSelectorConfig;
+import com.fortify.cli.license.ncd_report.config.NcdReportGitHubOrganizationConfig;
+import com.fortify.cli.license.ncd_report.config.NcdReportGitHubSourceConfig;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
+import com.fortify.cli.license.ncd_report.generator.AbstractNcdReportUnirestResultsGenerator;
import kong.unirest.GetRequest;
import kong.unirest.HttpRequest;
@@ -74,7 +74,7 @@ protected void generateResults() {
private void generateResults(NcdReportGitHubOrganizationConfig orgConfig) {
String orgName = orgConfig.getName();
try {
- resultsCollector().progressWriter().writeI18nProgress("fcli.util.ncd-report.loading.github-repositories", orgName);
+ resultsCollector().progressWriter().writeI18nProgress("fcli.license.ncd-report.loading.github-repositories", orgName);
HttpRequest> req = unirest().get("/orgs/{org}/repos?type=all&per_page=100").routeParam("org", orgName);
GitHubPagingHelper.pagedRequest(req, ArrayNode.class)
.ifSuccess(r->r.getBody().forEach(repo->
@@ -133,7 +133,7 @@ private boolean generateCommitDataForBranches(INcdReportRepositoryBranchCommitCo
.format(DateTimeFormatter.ISO_INSTANT);
boolean commitsFound = false;
for ( var branchDescriptor : branchDescriptors ) {
- resultsCollector().progressWriter().writeI18nProgress("fcli.util.ncd-report.loading.branch-commits", repoDescriptor.getFullName(), branchDescriptor.getName());
+ resultsCollector().progressWriter().writeI18nProgress("fcli.license.ncd-report.loading.branch-commits", repoDescriptor.getFullName(), branchDescriptor.getName());
HttpRequest> req = getCommitsRequest(repoDescriptor, branchDescriptor, 100)
.queryString("since", since);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/GitLabPagingHelper.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/GitLabPagingHelper.java
similarity index 96%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/GitLabPagingHelper.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/GitLabPagingHelper.java
index 3736300954..041ec634db 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/GitLabPagingHelper.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/GitLabPagingHelper.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.rest.paging.INextPageUrlProducer;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java
similarity index 90%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java
index b4c582cf81..206953d328 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabAuthorDescriptor.java
@@ -10,12 +10,12 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportAuthorDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java
similarity index 91%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java
index 6ea25969c6..0a653e9c80 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabBranchDescriptor.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportBranchDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportBranchDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java
similarity index 92%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java
index b36284f732..05b175e2be 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabCommitDescriptor.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import java.time.LocalDateTime;
@@ -19,7 +19,7 @@
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportCommitDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java
similarity index 93%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java
index e6daa44620..094f24a36f 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabRepositoryDescriptor.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.formkiq.graalvm.annotations.Reflectable;
import com.fortify.cli.common.json.JsonNodeHolder;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java
similarity index 92%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java
index 4cd7b4f6f2..a912543de4 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/generator/gitlab/NcdReportGitLabResultsGenerator.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.generator.gitlab;
+package com.fortify.cli.license.ncd_report.generator.gitlab;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
@@ -21,15 +21,15 @@
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.util.StringUtils;
-import com.fortify.cli.util.ncd_report.collector.INcdReportRepositoryBranchCommitCollector;
-import com.fortify.cli.util.ncd_report.collector.INcdReportRepositoryProcessor;
-import com.fortify.cli.util.ncd_report.collector.NcdReportResultsCollector;
-import com.fortify.cli.util.ncd_report.config.NcdReportCombinedRepoSelectorConfig;
-import com.fortify.cli.util.ncd_report.config.NcdReportGitLabGroupConfig;
-import com.fortify.cli.util.ncd_report.config.NcdReportGitLabSourceConfig;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
-import com.fortify.cli.util.ncd_report.generator.AbstractNcdReportUnirestResultsGenerator;
-import com.fortify.cli.util.ncd_report.generator.github.GitHubPagingHelper;
+import com.fortify.cli.license.ncd_report.collector.INcdReportRepositoryBranchCommitCollector;
+import com.fortify.cli.license.ncd_report.collector.INcdReportRepositoryProcessor;
+import com.fortify.cli.license.ncd_report.collector.NcdReportResultsCollector;
+import com.fortify.cli.license.ncd_report.config.NcdReportCombinedRepoSelectorConfig;
+import com.fortify.cli.license.ncd_report.config.NcdReportGitLabGroupConfig;
+import com.fortify.cli.license.ncd_report.config.NcdReportGitLabSourceConfig;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
+import com.fortify.cli.license.ncd_report.generator.AbstractNcdReportUnirestResultsGenerator;
+import com.fortify.cli.license.ncd_report.generator.github.GitHubPagingHelper;
import kong.unirest.GetRequest;
import kong.unirest.HttpRequest;
@@ -78,7 +78,7 @@ private void generateResults(NcdReportGitLabGroupConfig groupConfig) {
String groupId = groupConfig.getId();
try {
boolean includeSubgroups = groupConfig.getIncludeSubgroups().orElse(sourceConfig().getIncludeSubgroups().orElse(true));
- resultsCollector().progressWriter().writeI18nProgress("fcli.util.ncd-report.loading.gitlab-repositories", groupId);
+ resultsCollector().progressWriter().writeI18nProgress("fcli.license.ncd-report.loading.gitlab-repositories", groupId);
HttpRequest> req = unirest().get("/api/v4/groups/{id}/projects?per_page=100")
.routeParam("id", groupId)
.queryString("include_subgroups", includeSubgroups);
@@ -139,7 +139,7 @@ private boolean generateCommitDataForBranches(INcdReportRepositoryBranchCommitCo
.format(DateTimeFormatter.ISO_INSTANT);
boolean commitsFound = false;
for ( var branchDescriptor : branchDescriptors ) {
- resultsCollector().progressWriter().writeI18nProgress("fcli.util.ncd-report.loading.branch-commits", repoDescriptor.getFullName(), branchDescriptor.getName());
+ resultsCollector().progressWriter().writeI18nProgress("fcli.license.ncd-report.loading.branch-commits", repoDescriptor.getFullName(), branchDescriptor.getName());
HttpRequest> req = getCommitsRequest(repoDescriptor, branchDescriptor, 100)
.queryString("since", since);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/package-info.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/package-info.java
similarity index 99%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/package-info.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/package-info.java
index dd7a5aa694..a6a9e454d1 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/package-info.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/package-info.java
@@ -96,4 +96,4 @@
*
*
*/
-package com.fortify.cli.util.ncd_report;
+package com.fortify.cli.license.ncd_report;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java
similarity index 79%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java
index 912884a47a..d47a97f943 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsByRepositoryWriter.java
@@ -10,10 +10,10 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public interface INcdReportAuthorsByRepositoryWriter {
void writeRepositoryAuthor(INcdReportRepositoryDescriptor repositoryDescriptor, NcdReportProcessedAuthorDescriptor contributorDescriptor);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsWriter.java
similarity index 87%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsWriter.java
index 68eabaf4ba..97f951331f 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportAuthorsWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportAuthorsWriter.java
@@ -10,9 +10,9 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public interface INcdReportAuthorsWriter {
void writeIgnoredAuthor(NcdReportProcessedAuthorDescriptor descriptor);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByBranchWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByBranchWriter.java
similarity index 79%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByBranchWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByBranchWriter.java
index 0f96fcbc9c..6332a3a420 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByBranchWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByBranchWriter.java
@@ -10,10 +10,10 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public interface INcdReportCommitsByBranchWriter {
void writeBranchCommit(NcdReportBranchCommitDescriptor descriptor, NcdReportProcessedAuthorDescriptor processedAuthorDescriptor);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java
similarity index 75%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java
index f9ed0f652c..00f89cbe22 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportCommitsByRepositoryWriter.java
@@ -10,11 +10,11 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportCommitDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public interface INcdReportCommitsByRepositoryWriter {
void writeRepositoryCommit(INcdReportRepositoryDescriptor repositoryDescriptor, INcdReportCommitDescriptor commitDescriptor, NcdReportProcessedAuthorDescriptor contributorDescriptor);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportRepositoriesWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportRepositoriesWriter.java
similarity index 77%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportRepositoriesWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportRepositoriesWriter.java
index 17c061ed7a..9038b7dc41 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/INcdReportRepositoriesWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/INcdReportRepositoriesWriter.java
@@ -10,10 +10,10 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
-import com.fortify.cli.util.ncd_report.writer.NcdReportRepositoriesWriter.NcdReportRepositoryReportingStatus;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.writer.NcdReportRepositoriesWriter.NcdReportRepositoryReportingStatus;
public interface INcdReportRepositoriesWriter {
void writeRepository(INcdReportRepositoryDescriptor descriptor, NcdReportRepositoryReportingStatus status, String reason);
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java
similarity index 88%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java
index ac69de8e88..c5da2ad6b6 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsByRepositoryWriter.java
@@ -10,14 +10,14 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.output.OutputFormat;
import com.fortify.cli.common.output.writer.record.IRecordWriter;
import com.fortify.cli.common.report.writer.IReportWriter;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public final class NcdReportAuthorsByRepositoryWriter implements INcdReportAuthorsByRepositoryWriter {
private final IRecordWriter recordWriter;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsWriter.java
similarity index 93%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsWriter.java
index 4d03dcc1e0..c4a2c1f871 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportAuthorsWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportAuthorsWriter.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.output.OutputFormat;
import com.fortify.cli.common.output.writer.record.IRecordWriter;
import com.fortify.cli.common.report.writer.IReportWriter;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public final class NcdReportAuthorsWriter implements INcdReportAuthorsWriter {
private final IRecordWriter recordWriter;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByBranchWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByBranchWriter.java
similarity index 90%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByBranchWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByBranchWriter.java
index 066f26174d..0c2c9c4582 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByBranchWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByBranchWriter.java
@@ -10,14 +10,14 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.output.OutputFormat;
import com.fortify.cli.common.output.writer.record.IRecordWriter;
import com.fortify.cli.common.report.writer.IReportWriter;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportBranchCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public final class NcdReportCommitsByBranchWriter implements INcdReportCommitsByBranchWriter {
private final IRecordWriter recordWriter;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java
similarity index 86%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java
index e0cfb76658..7afdd8a875 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportCommitsByRepositoryWriter.java
@@ -10,15 +10,15 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.output.OutputFormat;
import com.fortify.cli.common.output.writer.record.IRecordWriter;
import com.fortify.cli.common.report.writer.IReportWriter;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportCommitDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportCommitDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
public final class NcdReportCommitsByRepositoryWriter implements INcdReportCommitsByRepositoryWriter {
private final IRecordWriter recordWriter;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportRepositoriesWriter.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportRepositoriesWriter.java
similarity index 93%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportRepositoriesWriter.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportRepositoriesWriter.java
index 7995ff9a28..aa45d54307 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportRepositoriesWriter.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportRepositoriesWriter.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.common.output.OutputFormat;
import com.fortify.cli.common.output.writer.record.IRecordWriter;
import com.fortify.cli.common.report.writer.IReportWriter;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportRepositoryDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportRepositoryDescriptor;
public final class NcdReportRepositoriesWriter implements INcdReportRepositoriesWriter {
private final IRecordWriter recordWriter;
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportResultsWriters.java b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportResultsWriters.java
similarity index 97%
rename from fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportResultsWriters.java
rename to fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportResultsWriters.java
index 301dd3b099..f45d44388e 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/ncd_report/writer/NcdReportResultsWriters.java
+++ b/fcli-core/fcli-license/src/main/java/com/fortify/cli/license/ncd_report/writer/NcdReportResultsWriters.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.writer;
+package com.fortify.cli.license.ncd_report.writer;
import com.fortify.cli.common.progress.helper.IProgressWriterI18n;
import com.fortify.cli.common.report.logger.IReportLogger;
diff --git a/fcli-core/fcli-license/src/main/resources/com/fortify/cli/license/i18n/LicenseMessages.properties b/fcli-core/fcli-license/src/main/resources/com/fortify/cli/license/i18n/LicenseMessages.properties
new file mode 100644
index 0000000000..288061bb37
--- /dev/null
+++ b/fcli-core/fcli-license/src/main/resources/com/fortify/cli/license/i18n/LicenseMessages.properties
@@ -0,0 +1,61 @@
+# Make sure none of the commands inherit usage header or description of the top-level fcli command
+# Note that we define these as usage.* whereas our parent bundle defines fcli.usage.* (with fcli prefix).
+# For some reason, overriding fcli.usage.* doesn't work.
+usage.header =
+usage.description =
+
+# fcli license
+fcli.license.usage.header = License-related commands, like license reporting
+fcli.license.usage.description = This module provides various commands related to Fortify licensing & license reporting.
+
+# fcli util msp-report
+fcli.license.msp-report.usage.header = Configure and generate 'Managed Service Provider' (MSP) reports.
+fcli.license.msp-report.generate.usage.header = Generate a 'Managed Service Provider' (MSP) report.
+fcli.license.msp-report.generate.usage.description.0 = This command generates a 'Managed Service Provider' (MSP) report based on configuration settings defined in a configuration file. A sample configuration file can be generated using the 'fcli util msp-report generate-config' command.
+fcli.license.msp-report.generate.usage.description.1 = \nThe configuration file includes settings for specifying one or more SSC instances from which to load MSP reporting data, and for specifying MSP (contract) information.
+fcli.license.msp-report.generate.usage.description.2 = \nThe generated report consists of multiple files, written to either a directory or zip-file. The primary output file is 'summary.txt' that contains various statistics, including the number of application and scan entitlements consumed during the reporting period. Various CSV files providing proof, like the number of entitlements consumed per application, what artifacts were processed, and which artifacts contributed to the entitlement consumption, are generated in the details directory of the report.
+fcli.license.msp-report.generate.usage.description.3 = \nThe generated 'checksums.sha256' file can be used to verify integrity of all generated files, using a command like 'sha256sum -c checksums.sha256'.
+fcli.license.msp-report.generate.usage.description.4 = \nThis command requires the following SSC application version attributes to be configured in SSC:
+fcli.license.msp-report.generate.usage.description.5 = - MSP_License_Type: Required, Single-Select List, Values: Application, Scan, Demo
+fcli.license.msp-report.generate.usage.description.6 = - MSP_End_Customer_Name - Optional (for demo applications), Single Line Text
+fcli.license.msp-report.generate.usage.description.7 = - MSP_End_Customer_Location - Optional (for demo applications), Single Line Text
+fcli.license.msp-report.generate.usage.description.8 = \nNote that all versions within a single application should provide the same values for these attributes.
+fcli.license.msp-report.generate.config = Configuration file; sample can be generated using the 'generate-config' command.
+fcli.license.msp-report.generate.start-date = Reporting period start date. Format: yyyy-MM-dd, for example 2023-01-01.
+fcli.license.msp-report.generate.end-date = Reporting period start date. Format: yyyy-MM-dd, for example 2023-03-31.
+fcli.license.msp-report.generate.confirm = Confirm delete of existing report output location.
+fcli.license.msp-report.generate.confirmPrompt = Confirm delete of existing output location %s?
+fcli.license.msp-report.generate.processing.app = Processing application %s
+fcli.license.msp-report.generate.processing.appversion = Processing application version %s
+fcli.license.msp-report.generate.warn.usingUploadDate = WARN: No scan date found for artifact id %s (%s), using upload date instead
+fcli.license.msp-report.generate-config.usage.header = Generate a sample configuration file for use by the 'generate' command.
+fcli.license.msp-report.generate-config.config = Name of the sample configuration file to be generated.
+fcli.license.msp-report.generate-config.confirm = Confirm overwrite of existing configuration file.
+
+# fcli util ncd-report
+fcli.license.ncd-report.usage.header = Configure and generate 'Number of Contributing Developers' (NCD) reports.
+fcli.license.ncd-report.generate.usage.header = Generate a 'Number of Contributing Developers' (NCD) report.
+fcli.license.ncd-report.generate.usage.description.0 = This command generates a 'Number of Contributing Developers' (NCD) report based on configuration settings defined in a configuration file. A sample configuration file can be generated using the 'fcli util ncd-report generate-config' command.\n
+fcli.license.ncd-report.generate.usage.description.1 = The configuration file includes rich settings for specifying the source code repositories from which to load contributing developer data (supporting multiple Source Code Management (SCM) systems), and for ignoring and de-duplicating contributing authors. \n
+fcli.license.ncd-report.generate.usage.description.2 = The generated report consists of multiple files, written to either a directory or zip-file. The primary output file is 'summary.txt' that contains various statistics, including the de-duplicated count of contributing developers. Various CSV files are generated with supporting proof, like the list of contributing authors, the list of commits that have been processed, and the list of repositories that have been processed.\n
+fcli.license.ncd-report.generate.usage.description.3 = The generated 'checksums.sha256' file can be used to verify integrity of all generated files, using a command like 'sha256sum -c checksums.sha256'.
+fcli.license.ncd-report.generate.config = Configuration file; sample can be generated using the 'generate-config' command.
+fcli.license.ncd-report.generate.confirm = Confirm delete of existing report output location.
+fcli.license.ncd-report.generate.confirmPrompt = Confirm delete of existing output location %s?
+fcli.license.ncd-report.generate-config.usage.header = Generate a sample configuration file for use by the 'generate' command.
+fcli.license.ncd-report.generate-config.config = Name of the sample configuration file to be generated.
+fcli.license.ncd-report.generate-config.confirm = Confirm overwrite of existing configuration file.
+fcli.license.ncd-report.loading.commits = Loading commits for repository: %s
+fcli.license.ncd-report.loading.branch-commits = Loading commits for branch %s:%s
+fcli.license.ncd-report.loading.github-repositories = Loading repositories for GitHub organization: %s
+fcli.license.ncd-report.loading.gitlab-repositories = Loading repositories for GitLab group: %s
+
+#################################################################################################################
+# The following are technical properties that shouldn't be internationalized ####################################
+#################################################################################################################
+fcli.license.msp-report.generate.output.table.options = reportPath,summary.errorCount
+fcli.license.msp-report.generate-config.output.table.options = path
+fcli.license.ncd-report.generate.output.table.options = reportPath,summary.errorCount
+fcli.license.ncd-report.generate-config.output.table.options = path
+
+
diff --git a/fcli-core/fcli-util/src/test/java/com/fortify/cli/util/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java b/fcli-core/fcli-license/src/test/java/com/fortify/cli/license/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java
similarity index 91%
rename from fcli-core/fcli-util/src/test/java/com/fortify/cli/util/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java
rename to fcli-core/fcli-license/src/test/java/com/fortify/cli/license/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java
index 30f58da3aa..d5a3ff32d5 100644
--- a/fcli-core/fcli-util/src/test/java/com/fortify/cli/util/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java
+++ b/fcli-core/fcli-license/src/test/java/com/fortify/cli/license/ncd_report/collector/NcdReportAuthorDeduplicatorTest.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.util.ncd_report.collector;
+package com.fortify.cli.license.ncd_report.collector;
import java.util.Map;
import java.util.Optional;
@@ -21,10 +21,10 @@
import org.junit.jupiter.api.Test;
import com.fortify.cli.common.json.JsonHelper;
-import com.fortify.cli.util.ncd_report.config.NcdReportContributorConfig;
-import com.fortify.cli.util.ncd_report.descriptor.INcdReportAuthorDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
-import com.fortify.cli.util.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor.NcdReportProcessedAuthorState;
+import com.fortify.cli.license.ncd_report.config.NcdReportContributorConfig;
+import com.fortify.cli.license.ncd_report.descriptor.INcdReportAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor;
+import com.fortify.cli.license.ncd_report.descriptor.NcdReportProcessedAuthorDescriptor.NcdReportProcessedAuthorState;
import lombok.Data;
import lombok.RequiredArgsConstructor;
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_common/session/cli/cmd/SCDastSessionCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_common/session/cli/cmd/SCDastSessionCommands.java
index 0093895345..22361f43cf 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_common/session/cli/cmd/SCDastSessionCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_common/session/cli/cmd/SCDastSessionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast._common.session.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,5 +24,5 @@
SCDastSessionLogoutCommand.class
}
)
-public class SCDastSessionCommands extends AbstractFortifyCLICommand {
+public class SCDastSessionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_main/cli/cmd/SCDastCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_main/cli/cmd/SCDastCommands.java
index 5a2b084d6e..1179ecb2f5 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_main/cli/cmd/SCDastCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/_main/cli/cmd/SCDastCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast._main.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.sc_dast._common.session.cli.cmd.SCDastSessionCommands;
import com.fortify.cli.sc_dast.rest.cli.cmd.SCDastRestCommands;
import com.fortify.cli.sc_dast.scan.cli.cmd.SCDastScanCommands;
@@ -42,4 +42,4 @@
SCDastRestCommands.class,
}
)
-public class SCDastCommands extends AbstractFortifyCLICommand {}
+public class SCDastCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/rest/cli/cmd/SCDastRestCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/rest/cli/cmd/SCDastRestCommands.java
index 7957b6e892..07245abf32 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/rest/cli/cmd/SCDastRestCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/rest/cli/cmd/SCDastRestCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast.rest.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
}
)
-public class SCDastRestCommands extends AbstractFortifyCLICommand {
+public class SCDastRestCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan/cli/cmd/SCDastScanCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan/cli/cmd/SCDastScanCommands.java
index 8fc484e2f9..940b7ac852 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan/cli/cmd/SCDastScanCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan/cli/cmd/SCDastScanCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast.scan.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import com.fortify.cli.sc_dast.scan.cli.cmd.action.SCDastScanCompleteCommand;
import com.fortify.cli.sc_dast.scan.cli.cmd.action.SCDastScanDeleteCommand;
@@ -40,5 +40,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SCDastScanCommands extends AbstractFortifyCLICommand {
+public class SCDastScanCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_policy/cli/cmd/SCDastScanPolicyCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_policy/cli/cmd/SCDastScanPolicyCommands.java
index 3f932c83cf..cd467e8ce3 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_policy/cli/cmd/SCDastScanPolicyCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_policy/cli/cmd/SCDastScanPolicyCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast.scan_policy.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -25,5 +25,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SCDastScanPolicyCommands extends AbstractFortifyCLICommand {
+public class SCDastScanPolicyCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_settings/cli/cmd/SCDastScanSettingsCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_settings/cli/cmd/SCDastScanSettingsCommands.java
index 2116a70bdb..dba877ce7e 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_settings/cli/cmd/SCDastScanSettingsCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/scan_settings/cli/cmd/SCDastScanSettingsCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast.scan_settings.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -25,5 +25,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SCDastScanSettingsCommands extends AbstractFortifyCLICommand {
+public class SCDastScanSettingsCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/sensor/cli/cmd/SCDastSensorCommands.java b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/sensor/cli/cmd/SCDastSensorCommands.java
index 5d00866718..62273a8538 100644
--- a/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/sensor/cli/cmd/SCDastSensorCommands.java
+++ b/fcli-core/fcli-sc-dast/src/main/java/com/fortify/cli/sc_dast/sensor/cli/cmd/SCDastSensorCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_dast.sensor.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -27,5 +27,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SCDastSensorCommands extends AbstractFortifyCLICommand {
+public class SCDastSensorCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-dast/src/main/resources/com/fortify/cli/sc_dast/i18n/SCDastMessages.properties b/fcli-core/fcli-sc-dast/src/main/resources/com/fortify/cli/sc_dast/i18n/SCDastMessages.properties
index 7a1c164812..5d5dc30dbb 100644
--- a/fcli-core/fcli-sc-dast/src/main/resources/com/fortify/cli/sc_dast/i18n/SCDastMessages.properties
+++ b/fcli-core/fcli-sc-dast/src/main/resources/com/fortify/cli/sc_dast/i18n/SCDastMessages.properties
@@ -83,11 +83,17 @@ fcli.sc-dast.session.logout.no-revoke-token = Don't revoke the token passed to o
# fcli sc-dast session list
fcli.sc-dast.session.list.usage.header = List active and expired ScanCentral DAST sessions.
-fcli.sc-dast.session.list.usage.description = This commands lists all ScanCentral DAST sessions created \
- through the `login` command, as long as they haven't been explicitly terminated through the 'logout' \
- command. For sessions created using user name and password, the output of this command will show \
- session expiry date and status. For sessions created using a pre-generated token, fcli cannot display \
- this information as SSC doesn't allow for obtaining this information.
+fcli.sc-dast.session.list.usage.description.0 = This commands lists all ScanCentral DAST sessions created through the `login` \
+ command, as long as they haven't been explicitly terminated through the 'logout' command. %n
+fcli.sc-dast.session.list.usage.description.1 = For sessions created using user name and password, the output \
+ of this command will show session expiry date and status, based on the data provided by SSC at the time \
+ the login command was issued. Any changes to the generated token will not be reflected in the output of \
+ this command. Even if a session is no longer valid because the generated token was revoked (through SSC \
+ UI or 'fcli ssc token revoke' command), the output of this command may still show the session as not having \
+ expired. Similarly, any changes to token validity will not be reflected in the output of this command. %n
+fcli.sc-dast.session.list.usage.description.2 = For sessions created using a pre-generated token, fcli cannot \
+ display session expiration date or status, as SSC doesn't allow for obtaining this information.
+
# fcli sc-dast rest
fcli.sc-dast.rest.usage.header = Interact with ScanCentral DAST REST API endpoints.
diff --git a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_common/session/cli/cmd/SCSastSessionCommands.java b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_common/session/cli/cmd/SCSastSessionCommands.java
index 986be1a7a5..da39b50217 100644
--- a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_common/session/cli/cmd/SCSastSessionCommands.java
+++ b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_common/session/cli/cmd/SCSastSessionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_sast._common.session.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,5 +24,5 @@
SCSastSessionLogoutCommand.class
}
)
-public class SCSastSessionCommands extends AbstractFortifyCLICommand {
+public class SCSastSessionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_main/cli/cmd/SCSastCommands.java b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_main/cli/cmd/SCSastCommands.java
index d0445fa826..714c1dc87c 100644
--- a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_main/cli/cmd/SCSastCommands.java
+++ b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/_main/cli/cmd/SCSastCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_sast._main.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.sc_sast._common.session.cli.cmd.SCSastSessionCommands;
import com.fortify.cli.sc_sast.rest.cli.cmd.SCSastControllerRestCommands;
import com.fortify.cli.sc_sast.scan.cli.cmd.SCSastScanCommands;
@@ -36,4 +36,4 @@
SCSastControllerRestCommands.class,
}
)
-public class SCSastCommands extends AbstractFortifyCLICommand {}
+public class SCSastCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/rest/cli/cmd/SCSastControllerRestCommands.java b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/rest/cli/cmd/SCSastControllerRestCommands.java
index 6eaab5ab1d..48638f0db6 100644
--- a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/rest/cli/cmd/SCSastControllerRestCommands.java
+++ b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/rest/cli/cmd/SCSastControllerRestCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_sast.rest.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
}
)
-public class SCSastControllerRestCommands extends AbstractFortifyCLICommand {
+public class SCSastControllerRestCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/cmd/SCSastScanCommands.java b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/cmd/SCSastScanCommands.java
index 13729ea36d..1aa2385fca 100644
--- a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/cmd/SCSastScanCommands.java
+++ b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/cmd/SCSastScanCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.sc_sast.scan.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -27,5 +27,5 @@
}
)
@DefaultVariablePropertyName("jobToken")
-public class SCSastScanCommands extends AbstractFortifyCLICommand {
+public class SCSastScanCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-sc-sast/src/main/resources/com/fortify/cli/sc_sast/i18n/SCSastMessages.properties b/fcli-core/fcli-sc-sast/src/main/resources/com/fortify/cli/sc_sast/i18n/SCSastMessages.properties
index 529845e294..b8d8b5c344 100644
--- a/fcli-core/fcli-sc-sast/src/main/resources/com/fortify/cli/sc_sast/i18n/SCSastMessages.properties
+++ b/fcli-core/fcli-sc-sast/src/main/resources/com/fortify/cli/sc_sast/i18n/SCSastMessages.properties
@@ -86,11 +86,16 @@ fcli.sc-sast.session.logout.no-revoke-token = Don't revoke the token passed to o
# fcli sc-sast session list
fcli.sc-sast.session.list.usage.header = List active and expired ScanCentral SAST sessions.
-fcli.sc-sast.session.list.usage.description = This commands lists all ScanCentral SAST sessions created \
- through the `login` command, as long as they haven't been explicitly terminated through the 'logout' \
- command. For sessions created using user name and password, the output of this command will show \
- session expiry date and status. For sessions created using a pre-generated token, fcli cannot display \
- this information as SSC doesn't allow for obtaining this information.
+fcli.sc-sast.session.list.usage.description.0 = This commands lists all ScanCentral SAST sessions created through the `login` \
+ command, as long as they haven't been explicitly terminated through the 'logout' command. %n
+fcli.sc-sast.session.list.usage.description.1 = For sessions created using user name and password, the output \
+ of this command will show session expiry date and status, based on the data provided by SSC at the time \
+ the login command was issued. Any changes to the generated token will not be reflected in the output of \
+ this command. Even if a session is no longer valid because the generated token was revoked (through SSC \
+ UI or 'fcli ssc token revoke' command), the output of this command may still show the session as not having \
+ expired. Similarly, any changes to token validity will not be reflected in the output of this command. %n
+fcli.sc-sast.session.list.usage.description.2 = For sessions created using a pre-generated token, fcli cannot \
+ display session expiration date or status, as SSC doesn't allow for obtaining this information.
# fcli sc-sast rest
fcli.sc-sast.rest.usage.header = Interact with ScanCentral SAST Controller REST API endpoints.
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_common/session/cli/cmd/SSCSessionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_common/session/cli/cmd/SSCSessionCommands.java
index 46eb0faa33..06e3f72d20 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_common/session/cli/cmd/SSCSessionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_common/session/cli/cmd/SSCSessionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc._common.session.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,5 +24,5 @@
SSCSessionLogoutCommand.class
}
)
-public class SSCSessionCommands extends AbstractFortifyCLICommand {
+public class SSCSessionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_main/cli/cmd/SSCCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_main/cli/cmd/SSCCommands.java
index 51ccc8564d..565bab71e9 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_main/cli/cmd/SSCCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/_main/cli/cmd/SSCCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc._main.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.ssc._common.session.cli.cmd.SSCSessionCommands;
import com.fortify.cli.ssc.activity_feed.cli.cmd.SSCActivityFeedCommands;
import com.fortify.cli.ssc.alert.cli.cmd.SSCAlertCommands;
@@ -78,4 +78,4 @@
SSCRestCommands.class,
}
)
-public class SSCCommands extends AbstractFortifyCLICommand {}
+public class SSCCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/activity_feed/cli/cmd/SSCActivityFeedCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/activity_feed/cli/cmd/SSCActivityFeedCommands.java
index b8ee67beaa..a5e966bf18 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/activity_feed/cli/cmd/SSCActivityFeedCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/activity_feed/cli/cmd/SSCActivityFeedCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.activity_feed.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,5 +22,5 @@
SSCActivityFeedListCommand.class
}
)
-public class SSCActivityFeedCommands extends AbstractFortifyCLICommand {
+public class SSCActivityFeedCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert/cli/cmd/SSCAlertCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert/cli/cmd/SSCAlertCommands.java
index 32045516fc..1a25511e00 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert/cli/cmd/SSCAlertCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert/cli/cmd/SSCAlertCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.alert.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,5 +22,5 @@
SSCAlertListCommand.class
}
)
-public class SSCAlertCommands extends AbstractFortifyCLICommand {
+public class SSCAlertCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert_definition/cli/cmd/SSCAlertDefinitionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert_definition/cli/cmd/SSCAlertDefinitionCommands.java
index d8cba61c84..5f9305b9f2 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert_definition/cli/cmd/SSCAlertDefinitionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/alert_definition/cli/cmd/SSCAlertDefinitionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.alert_definition.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
SSCAlertDefinitionListCommand.class
}
)
-public class SSCAlertDefinitionCommands extends AbstractFortifyCLICommand {
+public class SSCAlertDefinitionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/app/cli/cmd/SSCAppCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/app/cli/cmd/SSCAppCommands.java
index ab8e4d6627..e20b766da1 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/app/cli/cmd/SSCAppCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/app/cli/cmd/SSCAppCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.app.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -27,5 +27,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SSCAppCommands extends AbstractFortifyCLICommand {
+public class SSCAppCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion/cli/cmd/SSCAppVersionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion/cli/cmd/SSCAppVersionCommands.java
index 70b2799841..9ff41efd96 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion/cli/cmd/SSCAppVersionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion/cli/cmd/SSCAppVersionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import picocli.CommandLine.Command;
@@ -31,5 +31,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SSCAppVersionCommands extends AbstractFortifyCLICommand {
+public class SSCAppVersionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_attribute/cli/cmd/SSCAppVersionAttributeCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_attribute/cli/cmd/SSCAppVersionAttributeCommands.java
index fa1e6b0697..1a426dcfcd 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_attribute/cli/cmd/SSCAppVersionAttributeCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_attribute/cli/cmd/SSCAppVersionAttributeCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion_attribute.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
SSCAppVersionAttributeSetCommand.class
}
)
-public class SSCAppVersionAttributeCommands extends AbstractFortifyCLICommand {
+public class SSCAppVersionAttributeCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_filterset/cli/cmd/SSCAppVersionFilterSetCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_filterset/cli/cmd/SSCAppVersionFilterSetCommands.java
index 838ad8dbe2..7a969e496d 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_filterset/cli/cmd/SSCAppVersionFilterSetCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_filterset/cli/cmd/SSCAppVersionFilterSetCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion_filterset.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
SSCAppVersionFilterSetListCommand.class,
}
)
-public class SSCAppVersionFilterSetCommands extends AbstractFortifyCLICommand {
+public class SSCAppVersionFilterSetCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_user/cli/cmd/SSCAppVersionUserCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_user/cli/cmd/SSCAppVersionUserCommands.java
index f06375de1c..a7a56bb36b 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_user/cli/cmd/SSCAppVersionUserCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/appversion_user/cli/cmd/SSCAppVersionUserCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion_user.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,5 +24,5 @@
SSCAppVersionUserListCommand.class,
}
)
-public class SSCAppVersionUserCommands extends AbstractFortifyCLICommand {
+public class SSCAppVersionUserCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/artifact/cli/cmd/SSCArtifactCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/artifact/cli/cmd/SSCArtifactCommands.java
index 6c5f1a2a7e..0bace39b68 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/artifact/cli/cmd/SSCArtifactCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/artifact/cli/cmd/SSCArtifactCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.artifact.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.common.variable.DefaultVariablePropertyName;
import com.fortify.cli.ssc.artifact.cli.cmd.import_debricked.SSCArtifactImportDebrickedCommand;
@@ -33,5 +33,5 @@
}
)
@DefaultVariablePropertyName("id")
-public class SSCArtifactCommands extends AbstractFortifyCLICommand {
+public class SSCArtifactCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/attribute_definition/cli/cmd/SSCAttributeDefinitionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/attribute_definition/cli/cmd/SSCAttributeDefinitionCommands.java
index eadc78d645..17e364ac4d 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/attribute_definition/cli/cmd/SSCAttributeDefinitionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/attribute_definition/cli/cmd/SSCAttributeDefinitionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.attribute_definition.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
SSCAttributeDefinitionListCommand.class
}
)
-public class SSCAttributeDefinitionCommands extends AbstractFortifyCLICommand {
+public class SSCAttributeDefinitionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/event/cli/cmd/SSCEventCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/event/cli/cmd/SSCEventCommands.java
index 835c370f52..f61f833bb6 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/event/cli/cmd/SSCEventCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/event/cli/cmd/SSCEventCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.event.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,5 +22,5 @@
SSCEventListCommand.class
}
)
-public class SSCEventCommands extends AbstractFortifyCLICommand {
+public class SSCEventCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/issue_template/cli/cmd/SSCIssueTemplateCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/issue_template/cli/cmd/SSCIssueTemplateCommands.java
index 49dc8816dc..3b7133200a 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/issue_template/cli/cmd/SSCIssueTemplateCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/issue_template/cli/cmd/SSCIssueTemplateCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.issue_template.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -27,5 +27,5 @@
SSCIssueTemplateUpdateCommand.class
}
)
-public class SSCIssueTemplateCommands extends AbstractFortifyCLICommand {
+public class SSCIssueTemplateCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/job/cli/cmd/SSCJobCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/job/cli/cmd/SSCJobCommands.java
index 4531a2b7a3..a265d3f26c 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/job/cli/cmd/SSCJobCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/job/cli/cmd/SSCJobCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.job.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -25,5 +25,5 @@
SSCJobUpdateCommand.class
}
)
-public class SSCJobCommands extends AbstractFortifyCLICommand {
+public class SSCJobCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/plugin/cli/cmd/SSCPluginCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/plugin/cli/cmd/SSCPluginCommands.java
index 6e36f8d9f4..dfe880f8a4 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/plugin/cli/cmd/SSCPluginCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/plugin/cli/cmd/SSCPluginCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.plugin.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -28,5 +28,5 @@
}
)
-public class SSCPluginCommands extends AbstractFortifyCLICommand {
+public class SSCPluginCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/report_template/cli/cmd/SSCReportTemplateCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/report_template/cli/cmd/SSCReportTemplateCommands.java
index 2ed2e50b3f..18f09ed799 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/report_template/cli/cmd/SSCReportTemplateCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/report_template/cli/cmd/SSCReportTemplateCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.report_template.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -27,5 +27,5 @@
SSCReportTemplateDeleteCommand.class
}
)
-public class SSCReportTemplateCommands extends AbstractFortifyCLICommand {
+public class SSCReportTemplateCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/rest/cli/cmd/SSCRestCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/rest/cli/cmd/SSCRestCommands.java
index c34a548196..cb9828d0f0 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/rest/cli/cmd/SSCRestCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/rest/cli/cmd/SSCRestCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.rest.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
}
)
-public class SSCRestCommands extends AbstractFortifyCLICommand {
+public class SSCRestCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role/cli/cmd/SSCRoleCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role/cli/cmd/SSCRoleCommands.java
index b281223422..28cafdd77f 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role/cli/cmd/SSCRoleCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role/cli/cmd/SSCRoleCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.role.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,5 +26,5 @@
}
)
-public class SSCRoleCommands extends AbstractFortifyCLICommand {
+public class SSCRoleCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role_permission/cli/cmd/SSCRolePermissionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role_permission/cli/cmd/SSCRolePermissionCommands.java
index 52ca8667d3..56c1e6a492 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role_permission/cli/cmd/SSCRolePermissionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/role_permission/cli/cmd/SSCRolePermissionCommands.java
@@ -13,7 +13,7 @@
package com.fortify.cli.ssc.role_permission.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,5 +26,5 @@
}
)
-public class SSCRolePermissionCommands extends AbstractFortifyCLICommand {
+public class SSCRolePermissionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/seed_bundle/cli/cmd/SSCSeedBundleCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/seed_bundle/cli/cmd/SSCSeedBundleCommands.java
index c203d461bb..d0c8e9d614 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/seed_bundle/cli/cmd/SSCSeedBundleCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/seed_bundle/cli/cmd/SSCSeedBundleCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.seed_bundle.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,5 +22,5 @@
SSCSeedBundleUploadCommand.class
}
)
-public class SSCSeedBundleCommands extends AbstractFortifyCLICommand {
+public class SSCSeedBundleCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token/cli/cmd/SSCTokenCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token/cli/cmd/SSCTokenCommands.java
index d11b63bf85..d2ace886de 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token/cli/cmd/SSCTokenCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token/cli/cmd/SSCTokenCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.token.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,5 +26,5 @@
}
)
-public class SSCTokenCommands extends AbstractFortifyCLICommand {
+public class SSCTokenCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token_definition/cli/cmd/SSCTokenDefinitionCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token_definition/cli/cmd/SSCTokenDefinitionCommands.java
index e918eb1b83..6212b11df3 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token_definition/cli/cmd/SSCTokenDefinitionCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/token_definition/cli/cmd/SSCTokenDefinitionCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.token_definition.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,5 +23,5 @@
}
)
-public class SSCTokenDefinitionCommands extends AbstractFortifyCLICommand {
+public class SSCTokenDefinitionCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/user/cli/cmd/SSCUserCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/user/cli/cmd/SSCUserCommands.java
index 5e644a1d0e..f877d5b8bc 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/user/cli/cmd/SSCUserCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/user/cli/cmd/SSCUserCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.user.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,5 +24,5 @@
SSCUserListCommand.class
}
)
-public class SSCUserCommands extends AbstractFortifyCLICommand {
+public class SSCUserCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/vulnerability/cli/cmd/SSCVulnerabilityCommands.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/vulnerability/cli/cmd/SSCVulnerabilityCommands.java
index e88575fb5e..b18177f83f 100644
--- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/vulnerability/cli/cmd/SSCVulnerabilityCommands.java
+++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/vulnerability/cli/cmd/SSCVulnerabilityCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.ssc.vulnerability.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,5 +22,5 @@
SSCVulnerabilityCountCommand.class,
}
)
-public class SSCVulnerabilityCommands extends AbstractFortifyCLICommand {
+public class SSCVulnerabilityCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/i18n/SSCMessages.properties b/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/i18n/SSCMessages.properties
index b329485f50..167dce00bd 100644
--- a/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/i18n/SSCMessages.properties
+++ b/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/i18n/SSCMessages.properties
@@ -98,11 +98,16 @@ fcli.ssc.session.logout.no-revoke-token = Don't revoke the token passed to or ge
being revoked.
fcli.ssc.session.list.usage.header = List active and expired Fortify SSC sessions.
-fcli.ssc.session.list.usage.description = This commands lists all SSC sessions created through the `login` \
- command, as long as they haven't been explicitly terminated through the 'logout' command. For sessions \
- created using user name and password, the output of this command will show session expiry date and status. \
- For sessions created using a pre-generated token, fcli cannot display this information as SSC doesn't \
- allow for obtaining this information.
+fcli.ssc.session.list.usage.description.0 = This commands lists all SSC sessions created through the `login` \
+ command, as long as they haven't been explicitly terminated through the 'logout' command. %n
+fcli.ssc.session.list.usage.description.1 = For sessions created using user name and password, the output \
+ of this command will show session expiry date and status, based on the data provided by SSC at the time \
+ the login command was issued. Any changes to the generated token will not be reflected in the output of \
+ this command. Even if a session is no longer valid because the generated token was revoked (through SSC \
+ UI or 'fcli ssc token revoke' command), the output of this command may still show the session as not having \
+ expired. Similarly, any changes to token validity will not be reflected in the output of this command. %n
+fcli.ssc.session.list.usage.description.2 = For sessions created using a pre-generated token, fcli cannot \
+ display session expiration date or status, as SSC doesn't allow for obtaining this information.
# fcli ssc rest
fcli.ssc.rest.usage.header = Interact with SSC REST API endpoints.
diff --git a/fcli-core/fcli-state/build.gradle b/fcli-core/fcli-state/build.gradle
deleted file mode 100644
index 8e063597b9..0000000000
--- a/fcli-core/fcli-state/build.gradle
+++ /dev/null
@@ -1 +0,0 @@
-apply from: "${sharedGradleScriptsDir}/fcli-module.gradle"
\ No newline at end of file
diff --git a/fcli-core/fcli-state/src/main/resources/com/fortify/cli/state/i18n/StateMessages.properties b/fcli-core/fcli-state/src/main/resources/com/fortify/cli/state/i18n/StateMessages.properties
deleted file mode 100644
index ac3de539bc..0000000000
--- a/fcli-core/fcli-state/src/main/resources/com/fortify/cli/state/i18n/StateMessages.properties
+++ /dev/null
@@ -1,33 +0,0 @@
-# Make sure none of the commands inherit usage header or description of the top-level fcli command
-# Note that we define these as usage.* whereas our parent bundle defines fcli.usage.* (with fcli prefix).
-# For some reason, overriding fcli.usage.* doesn't work.
-usage.header =
-usage.description =
-
-# fcli state
-fcli.state.usage.header = Manage fcli state data.
-fcli.state.usage.description = The commands in this module allow for managing fcli state, like managing fcli variable data.
-
-# fcli state clear
-fcli.state.clear.usage.header = Clear all fcli state data.
-fcli.state.clear.usage.description = This command deletes all state data from the fcli data directory. This includes variable data and session data. As a best practice, you should log out of existing sessions before running this command to perform proper session cleanup. This command does not clear fcli configuration data; please use the 'fcli config clear' command for clearing configuration data.
-fcli.state.clear.confirm = Confirm deleting all fcli state.
-
-# fcli state variable
-fcli.state.variable.usage.header = Manage fcli variables.
-fcli.state.variable.clear.usage.header = Clear all fcli variables.
-fcli.state.variable.delete.usage.header = Delete a single fcli variable.
-fcli.state.variable.get.usage.header = Get fcli variable meta-data.
-fcli.state.variable.list.usage.header = List fcli variables.
-fcli.state.variable.contents.usage.header = Get fcli variable contents.
-fcli.state.variable.name = Variable name.
-
-#################################################################################################################
-# The following are technical properties that shouldn't be internationalized ####################################
-#################################################################################################################
-
-# Table output columns configuration
-fcli.state.clear.output.table.options = name,type
-# Empty on purpose; output columns depend on variable contents, so we don't want default variable columns
-fcli.state.variable.contents.output.table.options =
-fcli.state.variable.output.table.options = created,accessed,name,defaultPropertyName,singular,encrypted
diff --git a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/_main/cli/cmd/ToolCommands.java b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/_main/cli/cmd/ToolCommands.java
index 215835fc66..0875dc4285 100644
--- a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/_main/cli/cmd/ToolCommands.java
+++ b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/_main/cli/cmd/ToolCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.tool._main.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.tool.fod_uploader.cli.cmd.ToolFoDUploaderCommands;
import com.fortify.cli.tool.sc_client.cli.cmd.ToolSCClientCommands;
import com.fortify.cli.tool.vuln_exporter.cli.cmd.ToolVulnExporterCommands;
@@ -28,4 +28,4 @@
ToolVulnExporterCommands.class
}
)
-public class ToolCommands extends AbstractFortifyCLICommand {}
+public class ToolCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/fod_uploader/cli/cmd/ToolFoDUploaderCommands.java b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/fod_uploader/cli/cmd/ToolFoDUploaderCommands.java
index 904c982b1d..130742f2b3 100644
--- a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/fod_uploader/cli/cmd/ToolFoDUploaderCommands.java
+++ b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/fod_uploader/cli/cmd/ToolFoDUploaderCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.tool.fod_uploader.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,6 +26,6 @@
}
)
-public class ToolFoDUploaderCommands extends AbstractFortifyCLICommand {
+public class ToolFoDUploaderCommands extends AbstractContainerCommand {
static final String TOOL_NAME = "fod-uploader";
}
diff --git a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/sc_client/cli/cmd/ToolSCClientCommands.java b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/sc_client/cli/cmd/ToolSCClientCommands.java
index ab107a1cfe..36427d50f0 100644
--- a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/sc_client/cli/cmd/ToolSCClientCommands.java
+++ b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/sc_client/cli/cmd/ToolSCClientCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.tool.sc_client.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,6 +26,6 @@
}
)
-public class ToolSCClientCommands extends AbstractFortifyCLICommand {
+public class ToolSCClientCommands extends AbstractContainerCommand {
static final String TOOL_NAME = "sc-client";
}
\ No newline at end of file
diff --git a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/vuln_exporter/cli/cmd/ToolVulnExporterCommands.java b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/vuln_exporter/cli/cmd/ToolVulnExporterCommands.java
index be27443f2f..c1abeb351b 100644
--- a/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/vuln_exporter/cli/cmd/ToolVulnExporterCommands.java
+++ b/fcli-core/fcli-tool/src/main/java/com/fortify/cli/tool/vuln_exporter/cli/cmd/ToolVulnExporterCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.tool.vuln_exporter.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -26,6 +26,6 @@
}
)
-public class ToolVulnExporterCommands extends AbstractFortifyCLICommand {
+public class ToolVulnExporterCommands extends AbstractContainerCommand {
static final String TOOL_NAME = "vuln-exporter";
}
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/_main/cli/cmd/UtilCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/_main/cli/cmd/UtilCommands.java
index ac6dc0658f..c18463ced7 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/_main/cli/cmd/UtilCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/_main/cli/cmd/UtilCommands.java
@@ -12,13 +12,13 @@
*******************************************************************************/
package com.fortify.cli.util._main.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import com.fortify.cli.util.all_commands.cli.cmd.AllCommandsCommands;
import com.fortify.cli.util.autocomplete.cli.cmd.AutoCompleteCommands;
import com.fortify.cli.util.crypto.cli.cmd.CryptoCommands;
-import com.fortify.cli.util.msp_report.cli.cmd.MspReportCommands;
-import com.fortify.cli.util.ncd_report.cli.cmd.NcdReportCommands;
import com.fortify.cli.util.sample_data.cli.cmd.SampleDataCommands;
+import com.fortify.cli.util.state.cli.cmd.StateCommands;
+import com.fortify.cli.util.variable.cli.cmd.VariableCommands;
import picocli.CommandLine.Command;
@@ -29,9 +29,9 @@
AllCommandsCommands.class,
AutoCompleteCommands.class,
CryptoCommands.class,
- MspReportCommands.class,
- NcdReportCommands.class,
- SampleDataCommands.class
+ SampleDataCommands.class,
+ StateCommands.class,
+ VariableCommands.class
}
)
-public class UtilCommands extends AbstractFortifyCLICommand {}
+public class UtilCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsCommands.java
index 52d4495b89..1b9dc39726 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.all_commands.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,4 +23,4 @@
AllCommandsListCommand.class
}
)
-public class AllCommandsCommands extends AbstractFortifyCLICommand {}
+public class AllCommandsCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsUsageCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsUsageCommand.java
index 13e4e0c24c..16250767f5 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsUsageCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/all_commands/cli/cmd/AllCommandsUsageCommand.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.all_commands.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand;
import com.fortify.cli.util.all_commands.cli.mixin.AllCommandsCommandSelectorMixin;
import picocli.CommandLine;
@@ -21,7 +21,7 @@
import picocli.CommandLine.Model.CommandSpec;
@Command(name = "usage")
-public final class AllCommandsUsageCommand extends AbstractFortifyCLICommand implements Runnable {
+public final class AllCommandsUsageCommand extends AbstractRunnableCommand implements Runnable {
@Mixin private AllCommandsCommandSelectorMixin selectorMixin;
@Override
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteCommands.java
index 857155390d..853e40cd3e 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.autocomplete.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -22,4 +22,4 @@
AutoCompleteGenerationCommand.class
}
)
-public class AutoCompleteCommands extends AbstractFortifyCLICommand {}
+public class AutoCompleteCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteGenerationCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteGenerationCommand.java
index 18b6dcd5d9..206238d21d 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteGenerationCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/autocomplete/cli/cmd/AutoCompleteGenerationCommand.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.autocomplete.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand;
import picocli.AutoComplete;
import picocli.CommandLine.Command;
@@ -27,7 +27,7 @@
*
*/
@Command(name = "generate")
-public final class AutoCompleteGenerationCommand extends AbstractFortifyCLICommand implements Runnable {
+public final class AutoCompleteGenerationCommand extends AbstractRunnableCommand implements Runnable {
@Spec CommandSpec spec;
public void run() {
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/AbstractCryptoCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/AbstractCryptoCommand.java
index d16220c03f..b7f72bf26d 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/AbstractCryptoCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/AbstractCryptoCommand.java
@@ -14,13 +14,13 @@
import java.util.Scanner;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractRunnableCommand;
import com.fortify.cli.common.cli.mixin.CommandHelperMixin;
import lombok.SneakyThrows;
import picocli.CommandLine.Mixin;
-public abstract class AbstractCryptoCommand extends AbstractFortifyCLICommand implements Runnable {
+public abstract class AbstractCryptoCommand extends AbstractRunnableCommand implements Runnable {
@Mixin private CommandHelperMixin commandHelper;
@Override @SneakyThrows
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/CryptoCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/CryptoCommands.java
index a58c739860..1741a6aef6 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/CryptoCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/crypto/cli/cmd/CryptoCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.crypto.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -23,4 +23,4 @@
CryptoDecryptCommand.class
}
)
-public class CryptoCommands extends AbstractFortifyCLICommand {}
+public class CryptoCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/sample_data/cli/cmd/SampleDataCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/sample_data/cli/cmd/SampleDataCommands.java
index ad817ead1b..4503f99768 100644
--- a/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/sample_data/cli/cmd/SampleDataCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/sample_data/cli/cmd/SampleDataCommands.java
@@ -12,7 +12,7 @@
*******************************************************************************/
package com.fortify.cli.util.sample_data.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -24,4 +24,4 @@
SampleDataListCommand.class
}
)
-public class SampleDataCommands extends AbstractFortifyCLICommand {}
+public class SampleDataCommands extends AbstractContainerCommand {}
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/StateClearCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateClearCommand.java
similarity index 98%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/StateClearCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateClearCommand.java
index 5b09edbfd2..bb167b5546 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/StateClearCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateClearCommand.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state._main.cli.cmd;
+package com.fortify.cli.util.state.cli.cmd;
import java.io.File;
import java.io.IOException;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/package-info.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateCommands.java
similarity index 68%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/package-info.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateCommands.java
index b3f57c1a75..d2ebcdfb9d 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/_main/cli/cmd/package-info.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/state/cli/cmd/StateCommands.java
@@ -10,9 +10,17 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-/**
- * This package defines the 'state' top-level command, some generic sub-commands, and any accompanying
- * classes like mixins and (abstract) base classes.
- */
-package com.fortify.cli.state._main.cli.cmd;
+package com.fortify.cli.util.state.cli.cmd;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
+
+import picocli.CommandLine.Command;
+
+@Command(
+ name = "state",
+ subcommands = {
+ StateClearCommand.class,
+ }
+)
+public class StateCommands extends AbstractContainerCommand {
+}
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableClearCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableClearCommand.java
similarity index 97%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableClearCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableClearCommand.java
index 1c0f553bc2..c17c8b312a 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableClearCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableClearCommand.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableCommands.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableCommands.java
similarity index 85%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableCommands.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableCommands.java
index 400ffe189b..c52afc91dd 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableCommands.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableCommands.java
@@ -10,9 +10,9 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
-import com.fortify.cli.common.cli.cmd.AbstractFortifyCLICommand;
+import com.fortify.cli.common.cli.cmd.AbstractContainerCommand;
import picocli.CommandLine.Command;
@@ -28,5 +28,5 @@
}
)
-public class VariableCommands extends AbstractFortifyCLICommand {
+public class VariableCommands extends AbstractContainerCommand {
}
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableContentsCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableContentsCommand.java
similarity index 89%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableContentsCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableContentsCommand.java
index 41e27fa319..57af6b4090 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableContentsCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableContentsCommand.java
@@ -10,15 +10,15 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand;
import com.fortify.cli.common.output.cli.cmd.IJsonNodeSupplier;
import com.fortify.cli.common.util.DisableTest;
import com.fortify.cli.common.util.DisableTest.TestType;
-import com.fortify.cli.state.variable.cli.mixin.VariableOutputHelperMixins;
-import com.fortify.cli.state.variable.cli.mixin.VariableResolverMixin;
+import com.fortify.cli.util.variable.cli.mixin.VariableOutputHelperMixins;
+import com.fortify.cli.util.variable.cli.mixin.VariableResolverMixin;
import lombok.Getter;
import picocli.CommandLine.Command;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableDeleteCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableDeleteCommand.java
similarity index 94%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableDeleteCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableDeleteCommand.java
index e4e3acd326..33f1464cb5 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableDeleteCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableDeleteCommand.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand;
@@ -18,7 +18,7 @@
import com.fortify.cli.common.output.cli.mixin.OutputHelperMixins;
import com.fortify.cli.common.output.transform.IActionCommandResultSupplier;
import com.fortify.cli.common.variable.FcliVariableHelper;
-import com.fortify.cli.state.variable.cli.mixin.VariableResolverMixin;
+import com.fortify.cli.util.variable.cli.mixin.VariableResolverMixin;
import lombok.Getter;
import picocli.CommandLine.Command;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableGetCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableGetCommand.java
similarity index 92%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableGetCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableGetCommand.java
index bbce5ba7aa..bb2103a1cb 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableGetCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableGetCommand.java
@@ -10,13 +10,13 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand;
import com.fortify.cli.common.output.cli.cmd.IJsonNodeSupplier;
import com.fortify.cli.common.output.cli.mixin.OutputHelperMixins;
-import com.fortify.cli.state.variable.cli.mixin.VariableResolverMixin;
+import com.fortify.cli.util.variable.cli.mixin.VariableResolverMixin;
import lombok.Getter;
import picocli.CommandLine.Command;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableListCommand.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableListCommand.java
similarity index 96%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableListCommand.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableListCommand.java
index 85901f6a03..3bf1fc84d5 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/cmd/VariableListCommand.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/cmd/VariableListCommand.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.cmd;
+package com.fortify.cli.util.variable.cli.cmd;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableOutputHelperMixins.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableOutputHelperMixins.java
similarity index 94%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableOutputHelperMixins.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableOutputHelperMixins.java
index 6572a91353..7d7c345915 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableOutputHelperMixins.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableOutputHelperMixins.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.mixin;
+package com.fortify.cli.util.variable.cli.mixin;
import com.fortify.cli.common.output.cli.mixin.OutputHelperMixins;
diff --git a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableResolverMixin.java b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableResolverMixin.java
similarity index 95%
rename from fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableResolverMixin.java
rename to fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableResolverMixin.java
index aa782f3c89..0cc684df77 100644
--- a/fcli-core/fcli-state/src/main/java/com/fortify/cli/state/variable/cli/mixin/VariableResolverMixin.java
+++ b/fcli-core/fcli-util/src/main/java/com/fortify/cli/util/variable/cli/mixin/VariableResolverMixin.java
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*******************************************************************************/
-package com.fortify.cli.state.variable.cli.mixin;
+package com.fortify.cli.util.variable.cli.mixin;
import com.fasterxml.jackson.databind.JsonNode;
import com.fortify.cli.common.variable.FcliVariableHelper;
@@ -39,7 +39,7 @@ public static abstract class AbstractRequiredVariableResolverMixin extends Abstr
}
public static class PositionalParameter extends AbstractRequiredVariableResolverMixin {
- @Parameters(index = "0", arity = "1", descriptionKey = "fcli.state.variable.name")
+ @Parameters(index = "0", arity = "1", descriptionKey = "fcli.util.variable.name")
@Getter private String variableName;
}
}
diff --git a/fcli-core/fcli-util/src/main/resources/com/fortify/cli/util/i18n/UtilMessages.properties b/fcli-core/fcli-util/src/main/resources/com/fortify/cli/util/i18n/UtilMessages.properties
index 5f9743a6fc..a041391dff 100644
--- a/fcli-core/fcli-util/src/main/resources/com/fortify/cli/util/i18n/UtilMessages.properties
+++ b/fcli-core/fcli-util/src/main/resources/com/fortify/cli/util/i18n/UtilMessages.properties
@@ -39,7 +39,7 @@ fcli.util.auto-complete.generate.usage.description.1 = Run the following command
fcli.util.auto-complete.generate.usage.description.2 = \u0020\u0020source <(${PARENT-COMMAND-FULL-NAME:-$PARENTCOMMAND} ${COMMAND-NAME})
# fcli util crypto
-fcli.util.crypto.usage.header = Encrypting and decrypting data
+fcli.util.crypto.usage.header = Encrypt and decrypt data.
fcli.util.crypto.usage.description.0 = These commands allow for encrypting and decrypting string values using fcli built-in encryption mechanism and password. The password can be customized through the FCLI_ENCRYPT_KEY environment variable, obviously the same password should be configured during encryption and decryption.
fcli.util.crypto.usage.description.1 = Note that for now, encryption and decryption is not compatible with Fortify's pwtool utility. These commands are mainly meant to allow encrypted passwords to be stored in fcli configuration files, for example as used by the 'fcli util msp-report' and 'fcli util ncd-report' commands.
fcli.util.crypto.encrypt.usage.header = Encrypt a value.
@@ -47,48 +47,6 @@ fcli.util.crypto.encrypt.prompt = Value to encrypt:
fcli.util.crypto.decrypt.usage.header = Decrypt a value.
fcli.util.crypto.decrypt.prompt = Value to decrypt:
-# fcli util msp-report
-fcli.util.msp-report.usage.header = Configure and generate 'Managed Service Provider' (MSP) reports.
-fcli.util.msp-report.generate.usage.header = Generate a 'Managed Service Provider' (MSP) report.
-fcli.util.msp-report.generate.usage.description.0 = This command generates a 'Managed Service Provider' (MSP) report based on configuration settings defined in a configuration file. A sample configuration file can be generated using the 'fcli util msp-report generate-config' command.
-fcli.util.msp-report.generate.usage.description.1 = \nThe configuration file includes settings for specifying one or more SSC instances from which to load MSP reporting data, and for specifying MSP (contract) information.
-fcli.util.msp-report.generate.usage.description.2 = \nThe generated report consists of multiple files, written to either a directory or zip-file. The primary output file is 'summary.txt' that contains various statistics, including the number of application and scan entitlements consumed during the reporting period. Various CSV files providing proof, like the number of entitlements consumed per application, what artifacts were processed, and which artifacts contributed to the entitlement consumption, are generated in the details directory of the report.
-fcli.util.msp-report.generate.usage.description.3 = \nThe generated 'checksums.sha256' file can be used to verify integrity of all generated files, using a command like 'sha256sum -c checksums.sha256'.
-fcli.util.msp-report.generate.usage.description.4 = \nThis command requires the following SSC application version attributes to be configured in SSC:
-fcli.util.msp-report.generate.usage.description.5 = - MSP_License_Type: Required, Single-Select List, Values: Application, Scan, Demo
-fcli.util.msp-report.generate.usage.description.6 = - MSP_End_Customer_Name - Optional (for demo applications), Single Line Text
-fcli.util.msp-report.generate.usage.description.7 = - MSP_End_Customer_Location - Optional (for demo applications), Single Line Text
-fcli.util.msp-report.generate.usage.description.8 = \nNote that all versions within a single application should provide the same values for these attributes.
-fcli.util.msp-report.generate.config = Configuration file; sample can be generated using the 'generate-config' command.
-fcli.util.msp-report.generate.start-date = Reporting period start date. Format: yyyy-MM-dd, for example 2023-01-01.
-fcli.util.msp-report.generate.end-date = Reporting period start date. Format: yyyy-MM-dd, for example 2023-03-31.
-fcli.util.msp-report.generate.confirm = Confirm delete of existing report output location.
-fcli.util.msp-report.generate.confirmPrompt = Confirm delete of existing output location %s?
-fcli.util.msp-report.generate.processing.app = Processing application %s
-fcli.util.msp-report.generate.processing.appversion = Processing application version %s
-fcli.util.msp-report.generate.warn.usingUploadDate = WARN: No scan date found for artifact id %s (%s), using upload date instead
-fcli.util.msp-report.generate-config.usage.header = Generate a sample configuration file for use by the 'generate' command.
-fcli.util.msp-report.generate-config.config = Name of the sample configuration file to be generated.
-fcli.util.msp-report.generate-config.confirm = Confirm overwrite of existing configuration file.
-
-# fcli util ncd-report
-fcli.util.ncd-report.usage.header = Configure and generate 'Number of Contributing Developers' (NCD) reports.
-fcli.util.ncd-report.generate.usage.header = Generate a 'Number of Contributing Developers' (NCD) report.
-fcli.util.ncd-report.generate.usage.description.0 = This command generates a 'Number of Contributing Developers' (NCD) report based on configuration settings defined in a configuration file. A sample configuration file can be generated using the 'fcli util ncd-report generate-config' command.\n
-fcli.util.ncd-report.generate.usage.description.1 = The configuration file includes rich settings for specifying the source code repositories from which to load contributing developer data (supporting multiple Source Code Management (SCM) systems), and for ignoring and de-duplicating contributing authors. \n
-fcli.util.ncd-report.generate.usage.description.2 = The generated report consists of multiple files, written to either a directory or zip-file. The primary output file is 'summary.txt' that contains various statistics, including the de-duplicated count of contributing developers. Various CSV files are generated with supporting proof, like the list of contributing authors, the list of commits that have been processed, and the list of repositories that have been processed.\n
-fcli.util.ncd-report.generate.usage.description.3 = The generated 'checksums.sha256' file can be used to verify integrity of all generated files, using a command like 'sha256sum -c checksums.sha256'.
-fcli.util.ncd-report.generate.config = Configuration file; sample can be generated using the 'generate-config' command.
-fcli.util.ncd-report.generate.confirm = Confirm delete of existing report output location.
-fcli.util.ncd-report.generate.confirmPrompt = Confirm delete of existing output location %s?
-fcli.util.ncd-report.generate-config.usage.header = Generate a sample configuration file for use by the 'generate' command.
-fcli.util.ncd-report.generate-config.config = Name of the sample configuration file to be generated.
-fcli.util.ncd-report.generate-config.confirm = Confirm overwrite of existing configuration file.
-fcli.util.ncd-report.loading.commits = Loading commits for repository: %s
-fcli.util.ncd-report.loading.branch-commits = Loading commits for branch %s:%s
-fcli.util.ncd-report.loading.github-repositories = Loading repositories for GitHub organization: %s
-fcli.util.ncd-report.loading.gitlab-repositories = Loading repositories for GitLab group: %s
-
# fcli util sample-data
fcli.util.sample-data.usage.header = Generate sample data
fcli.util.sample-data.usage.description = These commands generate and output a fixed set of sample data \
@@ -107,6 +65,22 @@ fcli.util.sample-data.list.usage.description = This commands retrieves a single
output may vary between different fcli versions.
fcli.util.sample-data.id = Sample data record id
+# fcli util state
+fcli.util.state.usage.header = Manage fcli state data.
+fcli.util.state.usage.description = The commands in this module allow for managing fcli state, like clearing all state data.
+fcli.util.state.clear.usage.header = Clear all fcli state data.
+fcli.util.state.clear.usage.description = This command deletes all state data from the fcli data directory. This includes variable data and session data. As a best practice, you should log out of existing sessions before running this command to perform proper session cleanup. This command does not clear fcli configuration data; please use the 'fcli config clear' command for clearing configuration data.
+fcli.util.state.clear.confirm = Confirm deleting all fcli state.
+
+# fcli util variable
+fcli.util.variable.usage.header = Manage fcli variables.
+fcli.util.variable.clear.usage.header = Clear all fcli variables.
+fcli.util.variable.delete.usage.header = Delete a single fcli variable.
+fcli.util.variable.get.usage.header = Get fcli variable meta-data.
+fcli.util.variable.list.usage.header = List fcli variables.
+fcli.util.variable.contents.usage.header = Get fcli variable contents.
+fcli.util.variable.name = Variable name.
+
#################################################################################################################
# The following section lists human-readable header names used by table and tree output formats;
# values may be internationalized. These messages may be prefixed with full or partial command
@@ -120,9 +94,9 @@ fcli.util.all-commands.list.output.header.optionsString = Options
# The following are technical properties that shouldn't be internationalized ####################################
#################################################################################################################
fcli.util.all-commands.list.output.table.options = command,hidden,runnable,usageHeader
-fcli.util.msp-report.generate.output.table.options = reportPath,summary.errorCount
-fcli.util.msp-report.generate-config.output.table.options = path
-fcli.util.ncd-report.generate.output.table.options = reportPath,summary.errorCount
-fcli.util.ncd-report.generate-config.output.table.options = path
+fcli.util.state.clear.output.table.options = name,type
+# Empty on purpose; output columns depend on variable contents, so we don't want default variable columns
+fcli.util.variable.contents.output.table.options =
+fcli.util.variable.output.table.options = created,accessed,name,defaultPropertyName,singular,encrypted
diff --git a/fcli-other/fcli-autocomplete/build.gradle b/fcli-other/fcli-autocomplete/build.gradle
index 298d29906a..129c42f564 100644
--- a/fcli-other/fcli-autocomplete/build.gradle
+++ b/fcli-other/fcli-autocomplete/build.gradle
@@ -2,7 +2,10 @@ apply plugin: 'java'
dependencies {
runtimeOnly project("${fcliAppRef}")
- runtimeOnly 'info.picocli:picocli-codegen'
+ // TODO May need to re-enable once patch for #2068 has been released,
+ // but potentially the necessary dependency for picocli.AutoComplete
+ // is already available through the project dependency above.
+ //runtimeOnly 'info.picocli:picocli-codegen'
}
task dist(type: JavaExec) {
diff --git a/fcli-other/fcli-doc/src/docs/asciidoc/versioned/index.adoc b/fcli-other/fcli-doc/src/docs/asciidoc/versioned/index.adoc
index b116f71bb2..20dbc0f426 100644
--- a/fcli-other/fcli-doc/src/docs/asciidoc/versioned/index.adoc
+++ b/fcli-other/fcli-doc/src/docs/asciidoc/versioned/index.adoc
@@ -309,7 +309,7 @@ Variables can be stored using the `+--store myVarName[:prop1,prop2]+` option on
Variables can be referenced in subsequent fcli commands using the `::myVarName::prop` syntax anywhere on the command line; such occurrences will be substituted with the value of the given property name.
-Many (but not all) fcli commands will also store an entity-specific default property name when using the `+--store+` option. Whether a default property name has been stored can be seen in the output of the `+fcli state var list+` command. If a default property name was stored, the `::myVarName::` syntax can be used to reference the value of the default property name, thereby avoiding the need to manually specify the appropriate property name.
+Many (but not all) fcli commands will also store an entity-specific default property name when using the `+--store+` option. Whether a default property name has been stored can be seen in the output of the `+fcli util variable list+` command. If a default property name was stored, the `::myVarName::` syntax can be used to reference the value of the default property name, thereby avoiding the need to manually specify the appropriate property name.
Following are some examples, assuming the necessary login sessions are available:
@@ -328,16 +328,16 @@ fcli sc-sast scan start -p package.zip -v 22.2 --appversion test:1.0 --store x
fcli sc-sast scan wait-for ::x::jobToken
----
-Fcli provides the regular `get`, `list` and `delete` operations on the `+fcli state variable` command tree, and actual variable contents can be retrieved using the `+fcli state variable contents+` command. Please see help output or manual pages for more information on these commands.
+Fcli provides the regular `get`, `list` and `delete` operations on the `+fcli util variable` command tree, and actual variable contents can be retrieved using the `+fcli util variable contents+` command. Please see help output or manual pages for more information on these commands.
-The `+fcli state variable contents+` command supports the regular fcli output options and query capabilities. This allows for advanced us cases, like retrieving server data once and then outputting it in multiple formats, potentially even applying separate filters. As an example:
+The `+fcli util variable contents+` command supports the regular fcli output options and query capabilities. This allows for advanced us cases, like retrieving server data once and then outputting it in multiple formats, potentially even applying separate filters. As an example:
[source,bash]
----
fcli ssc appversion list --store myVersions
-fcli state variable contents myVersions -o csv --output-to-file myVersions.csv
-fcli state variable contents myVersions -o json -q createdBy=admin --output-to-file myAdminVersions.json
-fcli state variable contents myVersions -o 'expr={id}\n' --output-to-file myVersionIds.txt
+fcli util variable contents myVersions -o csv --output-to-file myVersions.csv
+fcli util variable contents myVersions -o json -q createdBy=admin --output-to-file myAdminVersions.json
+fcli util variable contents myVersions -o 'expr={id}\n' --output-to-file myVersionIds.txt
----
Note: variable-related syntax and behavior was changed in fcli version 2.0.0. If you are using an older fcli version, please refer to the documentation for that version. When upgrading from 1.x.x to 2.x.x, you may need to update your fcli invocations to match the new syntax. See link:https://github.com/fortify/fcli/issues/160[Issue 160] for information on why syntax and behavior was changed.
diff --git a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/core/BasicInfoSpec.groovy b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/core/BasicInfoSpec.groovy
index f3a9ee14ac..c3e8c6f17e 100644
--- a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/core/BasicInfoSpec.groovy
+++ b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/core/BasicInfoSpec.groovy
@@ -13,7 +13,6 @@ class BasicInfoSpec extends FcliBaseSpec {
verifyAll(expectedSuccess ? result.stdout : result.stderr) {
it.any { it ==~ /.*Command-line interface for working with various Fortify products.*/ }
it.any { it.contains 'config' }
- it.any { it.contains 'state' }
it.any { it.contains 'ssc' }
it.any { it.contains 'sc-dast' }
it.any { it.contains 'sc-sast' }
diff --git a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/report/NcdReportSpec.groovy b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/license/NcdReportSpec.groovy
similarity index 91%
rename from fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/report/NcdReportSpec.groovy
rename to fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/license/NcdReportSpec.groovy
index 0fc609c235..5fa84e7c74 100644
--- a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/report/NcdReportSpec.groovy
+++ b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/license/NcdReportSpec.groovy
@@ -10,7 +10,7 @@
* herein. The information contained herein is subject to change
* without notice.
*/
-package com.fortify.cli.ftest.report
+package com.fortify.cli.ftest.license
import com.fortify.cli.ftest._common.Fcli
import com.fortify.cli.ftest._common.spec.FcliBaseSpec
@@ -30,7 +30,7 @@ class NcdReportSpec extends FcliBaseSpec {
@Shared @TempFile("ncd-report.zip") String reportOutputZip;
def "generate-config"() {
- def args = "util ncd-report generate-config -y -c ${sampleConfigOutputFile} -o yaml"
+ def args = "license ncd-report generate-config -y -c ${sampleConfigOutputFile} -o yaml"
when:
def result = Fcli.run(args)
then:
@@ -44,7 +44,7 @@ class NcdReportSpec extends FcliBaseSpec {
@Requires({env.FCLI_FT_GITHUB_TOKEN && env.FCLI_FT_GITLAB_TOKEN})
def "generate-dir"() {
- def args = "util ncd-report generate -y -c ${configFile} -d ${reportOutputDir}"
+ def args = "license ncd-report generate -y -c ${configFile} -d ${reportOutputDir}"
when:
def result = Fcli.run(args)
then:
@@ -69,7 +69,7 @@ class NcdReportSpec extends FcliBaseSpec {
@Requires({env.FCLI_FT_GITHUB_TOKEN && env.FCLI_FT_GITLAB_TOKEN})
def "generate-zip"() {
- def args = "util ncd-report generate -y -c ${configFile} -z ${reportOutputZip}"
+ def args = "license ncd-report generate -y -c ${configFile} -z ${reportOutputZip}"
when:
def result = Fcli.run(args)
then:
diff --git a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/ssc/_common/SSCAppVersion.groovy b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/ssc/_common/SSCAppVersion.groovy
index 266cf5de71..3daa215c17 100644
--- a/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/ssc/_common/SSCAppVersion.groovy
+++ b/fcli-other/fcli-functional-test/src/ftest/groovy/com/fortify/cli/ftest/ssc/_common/SSCAppVersion.groovy
@@ -29,7 +29,7 @@ public class SSCAppVersion implements Closeable, AutoCloseable {
}
public String get(String propertyPath) {
- Fcli.run("state var contents $fcliVariableName -o expr={$propertyPath}",
+ Fcli.run("util var contents $fcliVariableName -o expr={$propertyPath}",
{it.expectSuccess(true, "Error getting application version property "+propertyPath)})
.stdout[0]
}
diff --git a/gradle.properties b/gradle.properties
index e9f7949982..73f8d647be 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -10,8 +10,8 @@ fcliFoDRef=:fcli-core:fcli-fod
fcliSCDastRef=:fcli-core:fcli-sc-dast
fcliSCSastRef=:fcli-core:fcli-sc-sast
fcliSSCRef=:fcli-core:fcli-ssc
-fcliStateRef=:fcli-core:fcli-state
fcliToolRef=:fcli-core:fcli-tool
+fcliLicenseRef=:fcli-core:fcli-license
fcliUtilRef=:fcli-core:fcli-util
fcliBomRef=:fcli-other:fcli-bom
diff --git a/settings.gradle b/settings.gradle
index 437e774bb3..5153ec7544 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -3,12 +3,12 @@ rootProject.name="fcli"
include "$fcliBomRef"
include "$fcliCommonRef"
include "$fcliConfigRef"
-include "$fcliStateRef"
include "$fcliSSCRef"
include "$fcliFoDRef"
include "$fcliSCSastRef"
include "$fcliSCDastRef"
include "$fcliToolRef"
+include "$fcliLicenseRef"
include "$fcliUtilRef"
include "$fcliAppRef"
include "$fcliFunctionalTestRef"