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 27
27
label : Version
28
28
description : |
29
29
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"
33
31
34
32
- type : textarea
35
33
id : description
Original file line number Diff line number Diff line change 1
1
docs/
2
- scripts/
3
2
test/
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ Global options:
16
16
--edit read last commit message from the specified file.
17
17
--from lower end of the commit range to lint. This is succeeded to --edit
18
18
--to upper end of the commit range to lint. This is succeeded to --edit
19
- --version display version information
20
19
` ` `
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import 'read.dart';
10
10
import 'types/format.dart' ;
11
11
import 'types/lint.dart' ;
12
12
import 'types/rule.dart' ;
13
- import 'version.g.dart' ;
14
13
15
14
class CommitLintRunner extends CommandRunner {
16
15
CommitLintRunner ()
@@ -25,9 +24,7 @@ class CommitLintRunner extends CommandRunner {
25
24
'lower end of the commit range to lint. This is succeeded to --edit' )
26
25
..addOption ('to' ,
27
26
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' );
31
28
}
32
29
33
30
@override
@@ -36,10 +33,6 @@ class CommitLintRunner extends CommandRunner {
36
33
37
34
@override
38
35
Future <void > runCommand (ArgResults topLevelResults) async {
39
- if (topLevelResults['version' ] == true ) {
40
- stderr.writeln ('commitlint@$kCurrentVersion ' );
41
- return ;
42
- }
43
36
if (topLevelResults.arguments.contains ('-h' ) ||
44
37
topLevelResults.arguments.contains ('--help' )) {
45
38
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