Skip to content

v1.3.0

Choose a tag to compare

@lukeed lukeed released this 25 Dec 21:33
· 56 commits to master since this release

Minor Changes

Adds support for git-like subcommands! πŸŽ‰ : 4b3a1de, 33437b5

const prog = sade('git');

// Not necessary for subcommands to work, but it's here anyway!
prog
  .command('remote')
  .describe('Manage set of tracked repositories')
  .action(opts => {
    console.log('~> Print current remotes...');
  });

prog
  .command('remote add <name> <url>', 'Demo...')
  .action((name, url, opts) => {
    console.log(`~> Adding a new remote (${name}) to ${url}`);
  });

prog
  .command('remote rename <old> <new>', 'Demo...')
  .action((old, nxt, opts) => {
    console.log(`~> Renaming from ${old} to ${nxt}~!`);
  });