A simple wrapper for grunt implementations of command line APIs
This release updates dependencies.
Published by tandrewnichols about 5 years ago
This release makes simple-cli more friendly for the windows environment.
Published by tandrewnichols about 6 years ago
Fixes:
Published by tandrewnichols almost 7 years ago
This release adds support for executables with no subcommands, executables with optional subcommands, and executables whose flags come before other arguments. It also changes the signature of the exported function so that the first argument is always a string, followed by an optional options argument (this is the breaking change that warrants a major version bump).
Published by tandrewnichols almost 7 years ago
This release
Published by tandrewnichols about 8 years ago
This release unnests options for simple-cli itself (quiet, env, cwd, force, onComplete, cmd, args, rawArgs, and debug). They use to be under the simple
key under each target's options, but that meant an annoying amount of nesting, which was doubly annoying if you didn't have any actual options for the executable.
Summary of change:
Convert this
grunt.initConfig({
task: {
target: {
options: {
simple: {
env: {
foo: 'bar'
}
}
}
}
}
});
to this
grunt.initConfig({
task: {
target: {
options: {
// still put executable options here
},
env: {
foo: 'bar'
}
}
}
});
Published by tandrewnichols about 8 years ago
Switch inherit to quiet, which makes defaulting to the right thing easier.
Published by tandrewnichols about 8 years ago
Fix inherit logging.
Published by tandrewnichols about 8 years ago
This release adds the inherit
option so that you can force the spawned process to work the way it would with stdio: inherit
to get immediate logging (instead of having to provide an onComplete
and do it yourself). This flag is true
by default (hence the major version here).
Published by tandrewnichols about 8 years ago
This release allows nested keys to be used in dynamic values. Previously, something like args: ['{{ foo.bar }}']
would not have worked correctly (it would be undefined). This release switches from setting interpolation keys with memo[ key ]
to _.set(memo, key, value)
so that nested keys work as expected.
Published by tandrewnichols over 9 years ago
Add support for Windows and refactor to improve ease of consumption.
Published by tandrewnichols over 9 years ago
Removes custom homepage.
Published by tandrewnichols over 9 years ago
This release:
options
key, those for the executable at the top level and those for simple-cli
itself under simple
.stdio
option, replacing it with an onComplete
handler that receives the stderr and stdout.env
option for specifying additional environment variables.cmd
and args
into separate options and allows an array for args
grunt.config
.Published by tandrewnichols about 10 years ago
This release adds support for options that can have multiple values, in the form --foo bar --foo baz
.
Published by tandrewnichols about 10 years ago
This release allows for interpolations values to be supplied via prompt and grunt.option
.
Published by tandrewnichols about 10 years ago
Initial release.