Skip to content

Commit

Permalink
Allow run command to use ignore arguments in order to filter final re…
Browse files Browse the repository at this point in the history
…sults
  • Loading branch information
en-milie committed May 5, 2022
1 parent 07ce579 commit 34055d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/endava/cats/command/CatsCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
versionProvider = VersionProvider.class,
commandListHeading = "%n@|bold,underline Commands:|@%n",
defaultValueProvider = CommandLine.PropertiesDefaultProvider.class,
// resourceBundle = "version",
resourceBundle = "version",
subcommands = {
AutoComplete.GenerateCompletion.class,
CommandLine.HelpCommand.class,
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/endava/cats/command/RunCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.endava.cats.args.ApiArguments;
import com.endava.cats.args.AuthArguments;
import com.endava.cats.args.IgnoreArguments;
import com.endava.cats.args.ReportingArguments;
import com.endava.cats.dsl.CatsDSLWords;
import com.endava.cats.util.VersionProvider;
Expand Down Expand Up @@ -69,6 +70,10 @@ public class RunCommand implements Runnable {
description = "A custom mime type if the OpenAPI spec uses content type negotiation versioning. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private String contentType = "application/json";

@Inject
@CommandLine.ArgGroup(heading = "%n@|bold,underline Ignore Options:|@%n", exclusive = false)
IgnoreArguments ignoreArguments;

@CommandLine.ParentCommand
private CatsCommand catsCommand;

Expand Down

0 comments on commit 34055d0

Please sign in to comment.