File tree Expand file tree Collapse file tree 6 files changed +2
-38
lines changed Expand file tree Collapse file tree 6 files changed +2
-38
lines changed Original file line number Diff line number Diff line change 2727 label : Version
2828 description : |
2929 What version of commitlint_cli are you running?
30-
31- > Tip: You can use `dart run commitlint_cli --version` to get the current version.
32- placeholder : " 0.5.1"
30+ placeholder : " version"
3331
3432 - type : textarea
3533 id : description
Original file line number Diff line number Diff line change 11docs/
2- scripts/
32test/
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ Global options:
1616 --edit read last commit message from the specified file.
1717 --from lower end of the commit range to lint. This is succeeded to --edit
1818 --to upper end of the commit range to lint. This is succeeded to --edit
19- --version display version information
2019` ` `
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import 'read.dart';
1010import 'types/format.dart' ;
1111import 'types/lint.dart' ;
1212import 'types/rule.dart' ;
13- import 'version.g.dart' ;
1413
1514class CommitLintRunner extends CommandRunner {
1615 CommitLintRunner ()
@@ -25,9 +24,7 @@ class CommitLintRunner extends CommandRunner {
2524 'lower end of the commit range to lint. This is succeeded to --edit' )
2625 ..addOption ('to' ,
2726 help:
28- 'upper end of the commit range to lint. This is succeeded to --edit' )
29- ..addFlag ('version' ,
30- negatable: false , help: 'display version information' );
27+ 'upper end of the commit range to lint. This is succeeded to --edit' );
3128 }
3229
3330 @override
@@ -36,10 +33,6 @@ class CommitLintRunner extends CommandRunner {
3633
3734 @override
3835 Future <void > runCommand (ArgResults topLevelResults) async {
39- if (topLevelResults['version' ] == true ) {
40- stderr.writeln ('commitlint@$kCurrentVersion ' );
41- return ;
42- }
4336 if (topLevelResults.arguments.contains ('-h' ) ||
4437 topLevelResults.arguments.contains ('--help' )) {
4538 printUsage ();
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments