simple-cli

A simple wrapper for grunt implementations of command line APIs

Downloads
29.8K
Stars
2
Committers
3
simple-cli - 5.0.5 Latest Release

Published by tandrewnichols about 5 years ago

This release updates dependencies.

simple-cli - 5.0.4

Published by tandrewnichols about 5 years ago

This release makes simple-cli more friendly for the windows environment.

simple-cli - 5.0.2

Published by tandrewnichols about 6 years ago

Fixes:

  • Updates lodash from vulnerable version
  • Fixes failing tasks but calling done with false [#10]
  • Changes from win-spawn (deprecated) to crosss-spawn [#11]
simple-cli - v5.0.0

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).

simple-cli - v4.1.0

Published by tandrewnichols almost 7 years ago

This release

  • Does some es6 cleanup
  • Switches from jshint to eslint
  • Switches all tests from coffeescript to javascript
  • Adds codeclimate support
  • And most importantly, adds support for local binaries (ala installed via npm)
simple-cli - v4.0.0

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'
      }
    }
  }
});
simple-cli - v3.0.2

Published by tandrewnichols about 8 years ago

Switch inherit to quiet, which makes defaulting to the right thing easier.

simple-cli - v3.0.1

Published by tandrewnichols about 8 years ago

Fix inherit logging.

simple-cli - v3.0.0

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).

simple-cli - v2.0.1

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.

simple-cli - v2.0.0

Published by tandrewnichols over 9 years ago

Add support for Windows and refactor to improve ease of consumption.

simple-cli - v1.0.1

Published by tandrewnichols over 9 years ago

Removes custom homepage.

simple-cli - v1.0.0

Published by tandrewnichols over 9 years ago

This release:

  1. Consolidates all options under the options key, those for the executable at the top level and those for simple-cli itself under simple.
  2. Removes the stdio option, replacing it with an onComplete handler that receives the stderr and stdout.
  3. Adds an env option for specifying additional environment variables.
  4. Splits up cmd and args into separate options and allows an array for args
  5. Adds a debug flag.
  6. Adds an extensibility mechanism for custom options.
  7. Allows dynamic values to be specified via grunt.config.
simple-cli - v0.1.1

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.

simple-cli - v0.1.0

Published by tandrewnichols about 10 years ago

This release allows for interpolations values to be supplied via prompt and grunt.option.

simple-cli - v0.0.2

Published by tandrewnichols about 10 years ago

Initial release.