From 388614add24625d839bf4a6666c6238351912784 Mon Sep 17 00:00:00 2001 From: Emiliano Leite Date: Tue, 23 Apr 2019 22:23:42 -0300 Subject: [PATCH] WIP: Add 'preview' command --- changelogs/unreleased/20190423222250257_change.yml | 2 ++ lib/codelog/cli.rb | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/unreleased/20190423222250257_change.yml diff --git a/changelogs/unreleased/20190423222250257_change.yml b/changelogs/unreleased/20190423222250257_change.yml new file mode 100644 index 0000000..de1a0ea --- /dev/null +++ b/changelogs/unreleased/20190423222250257_change.yml @@ -0,0 +1,2 @@ +"Added": + - "Add `preview` command" diff --git a/lib/codelog/cli.rb b/lib/codelog/cli.rb index 3085b75..fccd123 100644 --- a/lib/codelog/cli.rb +++ b/lib/codelog/cli.rb @@ -38,5 +38,11 @@ def bump(version_type, release_date = Date.today.strftime(Codelog::Config.date_input_format)) Codelog::Command::Bump.run version_type, release_date, options end + + desc 'preview ', 'Prints the preview of the next release' + def preview(version_number="x.x.x", + release_date = Date.today.strftime(Codelog::Config.date_input_format)) + Codelog::Command::Preview.run version_number, release_date + end end end