-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package convex.cli; | ||
|
||
import java.io.File; | ||
|
||
import convex.core.util.Utils; | ||
import picocli.CommandLine.Option; | ||
import picocli.CommandLine.ScopeType; | ||
|
||
public class StoreMixin { | ||
|
||
@Option(names = { "--keystore" }, | ||
defaultValue = "${env:CONVEX_KEYSTORE:-" + Constants.KEYSTORE_FILENAME+ "}", | ||
scope = ScopeType.INHERIT, | ||
description = "Keystore filename. Default: ${DEFAULT-VALUE}") | ||
private String keyStoreFilename; | ||
|
||
/** | ||
* Password for keystore. Option named to match Java keytool | ||
*/ | ||
@Option(names = {"--storepass" }, | ||
scope = ScopeType.INHERIT, | ||
defaultValue = "${env:CONVEX_KEYSTORE_PASSWORD}", | ||
description = "Password to read/write to the Keystore") | ||
String keystorePassword; | ||
|
||
/** | ||
* Gets the keystore file name currently used for the CLI | ||
* | ||
* @return File name, or null if not specified | ||
*/ | ||
public File getKeyStoreFile() { | ||
if (keyStoreFilename != null) { | ||
File f = Utils.getPath(keyStoreFilename); | ||
return f; | ||
} | ||
return null; | ||
} | ||
|
||
} |
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