Added Picocli Autocomplete script generation
This commit is contained in:
parent
8e5fe74f5c
commit
d752a56f2b
|
@ -47,7 +47,7 @@ tasks.withType(Test) {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'io.rudefox:vixen:0.0.2'
|
compile 'io.rudefox:vixen:0.0.2'
|
||||||
compile 'info.picocli:picocli:4.0.4'
|
compile 'info.picocli:picocli:4.5.1'
|
||||||
compile 'com.google.zxing:core:3.4.0'
|
compile 'com.google.zxing:core:3.4.0'
|
||||||
testCompile 'com.bjdweck.test:commons-test:0.0.1'
|
testCompile 'com.bjdweck.test:commons-test:0.0.1'
|
||||||
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
||||||
|
|
|
@ -2,13 +2,14 @@ package io.rudefox.burrow;
|
||||||
|
|
||||||
import com.bjdweck.bitcoin.params.INetworkParameters;
|
import com.bjdweck.bitcoin.params.INetworkParameters;
|
||||||
import com.bjdweck.bitcoin.params.NetworkParameters;
|
import com.bjdweck.bitcoin.params.NetworkParameters;
|
||||||
|
import picocli.AutoComplete;
|
||||||
import picocli.CommandLine;
|
import picocli.CommandLine;
|
||||||
|
|
||||||
@CommandLine.Command(
|
@CommandLine.Command(
|
||||||
name = "burrow",
|
name = "burrow",
|
||||||
synopsisSubcommandLabel = "COMMAND",
|
synopsisSubcommandLabel = "COMMAND",
|
||||||
description = "Offline wallet tool",
|
description = "Offline wallet tool",
|
||||||
subcommands = {MnemonicCommand.class, WalletCommand.class}
|
subcommands = {MnemonicCommand.class, WalletCommand.class, AutoComplete.GenerateCompletion.class}
|
||||||
)
|
)
|
||||||
public class RudefoxBurrow implements Runnable {
|
public class RudefoxBurrow implements Runnable {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user