This file contains hidden or 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
import groovy.cli.commons.CliBuilder | |
import static groovy.io.FileType.FILES | |
CliBuilder cli = new CliBuilder( | |
usage: 'groovy clientDemo.groovy -u {user} -p {password} -d {path to content} -n {repoName} [-h {nx3Url}]') | |
cli.with { | |
u longOpt: 'username', args: 1, required: true, 'A User with permissions to push to the target repo' | |
p longOpt: 'password', args: 1, required: true, 'Password for given User' | |
n longOpt: 'repoName', args: 1, required: true, 'Name of repo to publish to' | |
d longOpt: 'dir', args: 1, required: true, 'Path of directory to recursively publish' |