From 758ed2e2a531e868abbb913204639560e386624a Mon Sep 17 00:00:00 2001 From: Alexey Date: Sat, 3 Feb 2024 15:32:13 -0800 Subject: [PATCH] Release (#72) --- .github/workflows/dart.yml | 2 +- CHANGELOG.md | 5 +++++ lib/src/cli/command/bump_command.dart | 30 +++++++++++++-------------- lib/src/cli/command/log_command.dart | 26 +++++++++++------------ pubspec.yaml | 2 +- 5 files changed, 35 insertions(+), 30 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index a5cf61e..5cbedf2 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -21,4 +21,4 @@ jobs: - name: Tests run: dart test --coverage=.coverage - name: Coverage - run: dart run coverage:format_coverage -l -c -i .coverage --report-on=lib --packages=.dart_tool/package_config.json | dart run check_coverage:check_coverage 94 + run: dart run coverage:format_coverage -l -c -i .coverage --report-on=lib --packages=.dart_tool/package_config.json | dart run check_coverage:check_coverage 96 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7524b9b..08a9931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.6] - 2024-02-03 +### Fixed +- Made `bump` and `log` proper subcommands to improve UX ([PR](https://github.com/f3ath/cider/pull/70) by [marvin-kolja](https://github.com/marvin-kolja)) + ## [0.2.5] - 2024-01-07 ### Changed - Bump dependencies @@ -112,6 +116,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial version +[0.2.6]: https://github.com/f3ath/cider/compare/0.2.5...0.2.6 [0.2.5]: https://github.com/f3ath/cider/compare/0.2.4...0.2.5 [0.2.4]: https://github.com/f3ath/cider/compare/0.2.3...0.2.4 [0.2.3]: https://github.com/f3ath/cider/compare/0.2.2...0.2.3 diff --git a/lib/src/cli/command/bump_command.dart b/lib/src/cli/command/bump_command.dart index 838e84b..5da41e7 100644 --- a/lib/src/cli/command/bump_command.dart +++ b/lib/src/cli/command/bump_command.dart @@ -4,21 +4,6 @@ import 'package:cider/src/cli/command/bump_sub_command.dart'; import 'package:cider/src/cli/command/cider_command.dart'; import 'package:version_manipulation/mutations.dart'; -enum BumpType { - breaking(BumpBreaking(), 'Bump the breaking version'), - major(BumpMajor(), 'Bump the major version'), - minor(BumpMinor(), 'Bump the minor version'), - patch(BumpPatch(), 'Bump the patch version'), - build(BumpBuild(), 'Bump the build version'), - pre(BumpPreRelease(), 'Bump the pre-release version'), - release(Release(), 'Bump the release version'); - - const BumpType(this.mutation, this.description); - - final VersionMutation mutation; - final String description; -} - class BumpCommand extends CiderCommand { BumpCommand(super.console) { for (final type in BumpType.values) { @@ -39,3 +24,18 @@ class BumpCommand extends CiderCommand { 'Bump command can only be used with subcommands', usage); } } + +enum BumpType { + breaking(BumpBreaking(), 'Bump the breaking version'), + major(BumpMajor(), 'Bump the major version'), + minor(BumpMinor(), 'Bump the minor version'), + patch(BumpPatch(), 'Bump the patch version'), + build(BumpBuild(), 'Bump the build version'), + pre(BumpPreRelease(), 'Bump the pre-release version'), + release(Release(), 'Bump the release version'); + + const BumpType(this.mutation, this.description); + + final VersionMutation mutation; + final String description; +} diff --git a/lib/src/cli/command/log_command.dart b/lib/src/cli/command/log_command.dart index 7215f5f..1d8c976 100644 --- a/lib/src/cli/command/log_command.dart +++ b/lib/src/cli/command/log_command.dart @@ -3,19 +3,6 @@ import 'package:cider/src/cli/command/cider_command.dart'; import 'package:cider/src/cli/command/log_sub_command.dart'; import 'package:cider/src/project.dart'; -enum LogType { - fix('Add a new bug fix to the changelog'), - add('Add a new feature to the changelog'), - change('Add a new change to the changelog'), - deprecate('Add a new deprecation to the changelog'), - remove('Add a new removal to the changelog'), - security('Add a new security fix to the changelog'); - - const LogType(this.description); - - final String description; -} - class LogCommand extends CiderCommand { LogCommand(super.console) { for (final type in LogType.values) { @@ -37,3 +24,16 @@ class LogCommand extends CiderCommand { 'Log command can only be used with subcommands', usage); } } + +enum LogType { + fix('Add a new bug fix to the changelog'), + add('Add a new feature to the changelog'), + change('Add a new change to the changelog'), + deprecate('Add a new deprecation to the changelog'), + remove('Add a new removal to the changelog'), + security('Add a new security fix to the changelog'); + + const LogType(this.description); + + final String description; +} diff --git a/pubspec.yaml b/pubspec.yaml index d8586cc..eef4850 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: cider -version: 0.2.5 +version: 0.2.6 description: Tools for Dart package maintainers. Automates changelog and pubspec updates. homepage: https://github.com/f3ath/cider repository: https://github.com/f3ath/cider