dasilvacontin / cargo

:truck: Deliver args to your npm scripts.
3 stars 1 forks source link

Enable use of randomly named variables instead of $1,$2,$3 #1

Open dasilvacontin opened 8 years ago

dasilvacontin commented 8 years ago
  "scripts": {
    "bump": "cargo 'npm version $1 -m \":ship: Release v%s\"'"
  },

vs

  "scripts": {
    "bump": "cargo 'npm version $INC -m \":ship: Release v%s\"'"
  },

The latter is nicer because it's easier to tell the purpose of the argument.

dasilvacontin commented 7 years ago

Works well with #2, since we have more info to ask with.