-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated plugin selector mixin. Added no-auto-enable option to the install command. - Plugin list command now uses arg groups, plugin get command uses mixin. - Report-template pojo update and update generate-answerFile command to just copy a pre-made answer file. - Updated to not use manually constructed json. - Updated PredefinedFieldsTransformer to insert a placeholder for output columns fields that don't exist. - Make upload/download methods start with lower case letters. - Added the add/rm aliases to the install/uninstall commands. - Moved POJOs to a new package & updated references to new pojo location - Added plugin Get, Enable, and Disable commands - Renamed upload command to install - Renamed delete command to uninstall - Created a plugin selector Mixin - Update package location for SSCUrls
- Loading branch information
1 parent
2d27aff
commit 1d71ced
Showing
47 changed files
with
719 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/Image.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class Image { | ||
public String imageType; | ||
public String location; | ||
} |
16 changes: 16 additions & 0 deletions
16
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/IssueParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class IssueParser { | ||
@JacksonXmlElementWrapper(localName = "engine-type") | ||
public String engine_type; | ||
@JacksonXmlElementWrapper(localName = "supported-engine-versions") | ||
public String supported_engine_versions; | ||
@JacksonXmlElementWrapper(localName = "view-template") | ||
public ViewTemplate view_template; | ||
public String xsi; | ||
public String text; | ||
} |
9 changes: 9 additions & 0 deletions
9
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/Language.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class Language { | ||
public String id; | ||
public String location; | ||
} |
31 changes: 31 additions & 0 deletions
31
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/Plugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
import java.util.List; | ||
|
||
@ReflectiveAccess | ||
@JacksonXmlRootElement(localName = "plugin") | ||
public class Plugin { | ||
@JacksonXmlElementWrapper(localName = "plugin-info") | ||
public PluginInfo pluginInfo; | ||
@JacksonXmlElementWrapper(localName = "issue-parser") | ||
public IssueParser issue_parser; | ||
public String xmlns; | ||
public String xsi; | ||
public String type; | ||
public String id; | ||
@JacksonXmlElementWrapper(localName = "api-version") | ||
public String api_version; | ||
public String text; | ||
|
||
public static class Images { | ||
public List<Image> image; | ||
} | ||
|
||
public static class Localization { | ||
public List<Language> language; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/PluginInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class PluginInfo { | ||
public String name; | ||
public String version; | ||
@JacksonXmlElementWrapper(localName = "data-version") | ||
public int data_version; | ||
|
||
public Vendor vendor; | ||
public String description; | ||
public Resources resources; | ||
} |
9 changes: 9 additions & 0 deletions
9
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/Resources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class Resources { | ||
public Plugin.Localization localization; | ||
public Plugin.Images images; | ||
} |
9 changes: 9 additions & 0 deletions
9
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/Vendor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class Vendor { | ||
public String name; | ||
public String url; | ||
} |
10 changes: 10 additions & 0 deletions
10
fcli-ssc/src/main/java/com/fortify/cli/ssc/domain/plugin/parser/xml/ViewTemplate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.fortify.cli.ssc.domain.plugin.parser.xml; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
@ReflectiveAccess | ||
public class ViewTemplate { | ||
public String description; | ||
public String location; | ||
public String text; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.