Skip to content

Commit

Permalink
Release (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
f3ath authored Feb 3, 2024
1 parent d0662d7 commit 758ed2e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
30 changes: 15 additions & 15 deletions lib/src/cli/command/bump_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
26 changes: 13 additions & 13 deletions lib/src/cli/command/log_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 758ed2e

Please sign in to comment.