DocAsCodeCLI.java

package org.docascode;

import org.docascode.hooks.PostCommitCLI;
import org.docascode.hooks.PreCommitCLI;
import org.docascode.init.InitCLI;
import org.docascode.office.PropertyCLI;
import org.docascode.config.ConfigCLI;
import org.docascode.utils.Utils;
import picocli.CommandLine;

import java.io.File;

@CommandLine.Command(name = "docascode",
        versionProvider = org.docascode.DocAsCodeCtrl.ManifestVersionProvider.class,
        subcommands = {ConfigCLI.class, PropertyCLI.class, InitCLI.class, PostCommitCLI.class, PreCommitCLI.class})
public class DocAsCodeCLI implements Runnable{
    @CommandLine.Option(names = { "-v", "--version" }, versionHelp = true, description = "Show version information and exit")
    boolean versionHelpRequested;

    public DocAsCodeCLI(){
        Utils.setDirectory(new File("."));
    }

    @Override
    public void run() {

    }
}