From 6d8ace1656c600fc91ffc4a965d2fc948f58c572 Mon Sep 17 00:00:00 2001 From: "leedongmyung[desktop]" Date: Sun, 29 Oct 2023 20:53:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cli/commands/command_install.dart | 13 +++++++------ lib/cli/commands/command_start.dart | 5 ++--- lib/cli/commands/command_template.dart | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/cli/commands/command_install.dart b/lib/cli/commands/command_install.dart index 6e0bbcd..8d11013 100644 --- a/lib/cli/commands/command_install.dart +++ b/lib/cli/commands/command_install.dart @@ -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.'; } } diff --git a/lib/cli/commands/command_start.dart b/lib/cli/commands/command_start.dart index 53e3faa..9b13eee 100644 --- a/lib/cli/commands/command_start.dart +++ b/lib/cli/commands/command_start.dart @@ -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.'; } } diff --git a/lib/cli/commands/command_template.dart b/lib/cli/commands/command_template.dart index 0f46a6f..fea5a38 100644 --- a/lib/cli/commands/command_template.dart +++ b/lib/cli/commands/command_template.dart @@ -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.'; } }