-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Removed programmatic command declaration for manpage docs
- Loading branch information
Showing
27 changed files
with
342 additions
and
377 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
24 changes: 24 additions & 0 deletions
24
core/riot-core/src/main/java/com/redis/riot/core/CompositeExecutionStrategy.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,24 @@ | ||
package com.redis.riot.core; | ||
|
||
import picocli.CommandLine.ExecutionException; | ||
import picocli.CommandLine.IExecutionStrategy; | ||
import picocli.CommandLine.ParameterException; | ||
import picocli.CommandLine.ParseResult; | ||
|
||
public class CompositeExecutionStrategy implements IExecutionStrategy { | ||
|
||
private final IExecutionStrategy inactive; | ||
private final IExecutionStrategy active; | ||
|
||
public CompositeExecutionStrategy(IExecutionStrategy inactive, IExecutionStrategy active) { | ||
this.inactive = inactive; | ||
this.active = active; | ||
} | ||
|
||
@Override | ||
public int execute(ParseResult parseResult) throws ExecutionException, ParameterException { | ||
inactive.execute(parseResult); | ||
return active.execute(parseResult); | ||
} | ||
|
||
} |
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
18 changes: 18 additions & 0 deletions
18
core/riot-core/src/main/java/com/redis/riot/core/RiotException.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,18 @@ | ||
package com.redis.riot.core; | ||
|
||
@SuppressWarnings("serial") | ||
public class RiotException extends RuntimeException { | ||
|
||
public RiotException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public RiotException(String message) { | ||
super(message); | ||
} | ||
|
||
public RiotException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} |
18 changes: 0 additions & 18 deletions
18
core/riot-core/src/main/java/com/redis/riot/core/RiotExecutionException.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
core/riot-core/src/main/java/com/redis/riot/core/RiotInitializationException.java
This file was deleted.
Oops, something went wrong.
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.