코드 정리

This commit is contained in:
leedongmyung[desktop] 2023-10-29 20:53:49 +09:00
parent d2123efbff
commit 6d8ace1656
3 changed files with 10 additions and 10 deletions

View file

@ -34,9 +34,9 @@ class CommandInstall extends CommandBase {
//Create startup
await OSStartup.registStartup(installFilePath, label,
arguments: ['start']);
printOut('Installed successfully.', PrintType.information);
printOut('Successfully installed.', PrintType.information);
} else {
printOut('Installation failed because it is already installed.',
printOut('Installation failed because it was already installed',
PrintType.error);
}
return simpleFuture;
@ -45,7 +45,7 @@ class CommandInstall extends CommandBase {
@override
String getDescription() {
var serviceName = CLI.current.config.serviceName;
return 'Install "$serviceName" to run in the background as a startup program.';
return ':::: Install for the startup program to run on the background.';
}
}
@ -72,15 +72,16 @@ class CommandUninstall extends CommandBase {
//Remove startup
await OSStartup.unregistStartup(label);
printOut('Uninstalled successfully.', PrintType.information);
printOut('Successfully removed.', PrintType.information);
} else {
printOut('It is already uninstalled.', PrintType.warning);
printOut("It's already been uninstalled.", PrintType.warning);
}
return c.future;
}
@override
String getDescription() {
return 'Delete it from Startup.';
// ignore: prefer_interpolation_to_compose_strings
return ':::: Delete from the startup program and remove the file.';
}
}

View file

@ -1,6 +1,5 @@
import 'dart:async';
import 'package:oto_cli/cli/cli.dart';
import 'package:oto_cli/cli/commands/command_base.dart';
import 'package:dart_framework/utils/system_util.dart';
@ -15,7 +14,7 @@ class CommandStart extends CommandBase {
@override
String getDescription() {
return 'Run the program as a background service.';
return ':::: Run as a service on the background.';
}
}
@ -30,6 +29,6 @@ class CommandStop extends CommandBase {
@override
String getDescription() {
return 'Exit the "${CLI.serviceName}" currently running in the background.';
return ':::: Shut down the service currently running on the background.';
}
}

View file

@ -26,6 +26,6 @@ class CommandTemplate extends CommandBase {
@override
String getDescription() {
var serviceName = CLI.current.config.serviceName;
return 'This is template command description from $serviceName.';
return ':::: This is template command description from $serviceName.';
}
}