update:i18n
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import 'package:args/command_runner.dart';
|
||||
import 'package:mason_logger/mason_logger.dart';
|
||||
import 'package:yoyo_get_fast_mirror/src/commands/modules/getfastmirro/getfastmirror.dart';
|
||||
import 'package:yoyo_get_fast_mirror/i18n.dart';
|
||||
import 'package:yoyo_get_fast_mirror/src/commands/modules/getfastmirror/getfastmirror.dart';
|
||||
|
||||
class GetfastmirroCommand extends Command<int> {
|
||||
GetfastmirroCommand({
|
||||
class GetfastmirrorCommand extends Command<int> {
|
||||
GetfastmirrorCommand({
|
||||
required Logger logger,
|
||||
}) : _logger = logger {
|
||||
argParser.addFlag(
|
||||
'only-test',
|
||||
abbr: 'o',
|
||||
help: "Only test mirrors' speed",
|
||||
help: GetfastmirroCommand.flagOnlyTestHlep,
|
||||
negatable: false,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String get description =>
|
||||
'Get fastest mirror and generate config file for oyo';
|
||||
String get description => GetfastmirroCommand.description;
|
||||
|
||||
@override
|
||||
String get name => 'getfastmirror';
|
||||
@@ -25,10 +25,7 @@ class GetfastmirroCommand extends Command<int> {
|
||||
|
||||
@override
|
||||
Future<int> run() async {
|
||||
final output = lightBlue.wrap('''
|
||||
Get the fastest mirror which will be write into source file
|
||||
And generate a config file for oyo
|
||||
''');
|
||||
final output = lightBlue.wrap(GetfastmirroCommand.runOutPut);
|
||||
_logger.info(output);
|
||||
final onlyTest = argResults?['only-test'] == true;
|
||||
final commandResult = await getFastMirror(onlyTest: onlyTest);
|
||||
|
||||
Reference in New Issue
Block a user