File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,19 @@ const _path = './lib/src/const/language_color.dart';
8
8
const _url = 'https://raw.githubusercontent.com/'
9
9
'github/linguist/master/lib/linguist/languages.yml' ;
10
10
11
- Future main () async {
11
+ Future < void > main () async {
12
12
final response = await http.Client ().get (_url);
13
13
14
14
final yaml = loadYaml (response.body) as YamlMap ;
15
+
15
16
final stringBuffer = StringBuffer ()
16
17
..writeln ('// GENERATED CODE - DO NOT MODIFY BY HAND' )
17
18
..writeln ('// VERSION OF ${DateTime .now ().toIso8601String ()}' )
18
19
..writeln ()
19
- ..writeln ('const languagesColor = <String, String>{' );
20
+ ..writeln ('const kGitHubLanguageColors = <String, String>{' );
20
21
21
22
final map = yaml.value as YamlMap ;
23
+
22
24
final languages = map.keys.cast <String >().toList (growable: false )..sort ();
23
25
24
26
for (var language in languages) {
You can’t perform that action at this time.
0 commit comments