From 363c195477231a6b3b770e74ebfe316296ec5af2 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 18 May 2023 11:30:20 -0400 Subject: [PATCH] feat: add 'next' to alias to 'upcoming' --- CHANGELOG.yml | 2 ++ src/changelord.js | 5 +++++ src/command/upcoming.js | 3 --- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.yml b/CHANGELOG.yml index 8ed0c56..a11c30d 100644 --- a/CHANGELOG.yml +++ b/CHANGELOG.yml @@ -7,6 +7,8 @@ releases: - version: NEXT changes: - add `git-gather` command + - type: feat + desc: add 'next' to alias to 'upcoming' - version: 0.1.0 changes: - port the core of the Perl changelord to JavaScript. diff --git a/src/changelord.js b/src/changelord.js index 37fabea..7d23d56 100755 --- a/src/changelord.js +++ b/src/changelord.js @@ -55,6 +55,11 @@ yargs(hideBin(process.argv)) .command(cut) .command(schema) .command(upcoming) + .command({ + ...upcoming, + command: "next", + desc: 'alias for "upcoming"', + }) .command(latest) .command(git_gather) .strictCommands() diff --git a/src/command/upcoming.js b/src/command/upcoming.js index 0bb1d9a..3d480e4 100644 --- a/src/command/upcoming.js +++ b/src/command/upcoming.js @@ -27,8 +27,5 @@ const handler = async (config) => { export default { command: "upcoming", desc: "output the changes in NEXT", - builder: (yargs) => { - yargs; - }, handler, };