Added Picocli Autocomplete script generation

This commit is contained in:
B.J. Dweck 2020-09-02 12:09:14 +02:00
parent 8e5fe74f5c
commit d752a56f2b
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ tasks.withType(Test) {
dependencies {
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'
testCompile 'com.bjdweck.test:commons-test:0.0.1'
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"

View File

@ -2,13 +2,14 @@ package io.rudefox.burrow;
import com.bjdweck.bitcoin.params.INetworkParameters;
import com.bjdweck.bitcoin.params.NetworkParameters;
import picocli.AutoComplete;
import picocli.CommandLine;
@CommandLine.Command(
name = "burrow",
synopsisSubcommandLabel = "COMMAND",
description = "Offline wallet tool",
subcommands = {MnemonicCommand.class, WalletCommand.class}
subcommands = {MnemonicCommand.class, WalletCommand.class, AutoComplete.GenerateCompletion.class}
)
public class RudefoxBurrow implements Runnable {