oto/lib/cli/commands/command_start.dart
leedongmyung[desktop] 5e74ae06f3 Inital push
2023-10-28 22:06:44 +09:00

35 lines
742 B
Dart

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';
class CommandStart extends CommandBase {
@override
String get name => 'start';
@override
Future execute(List<String> parameters) {
return simpleFuture;
}
@override
String getDescription() {
return 'Run the program as a background service.';
}
}
class CommandStop extends CommandBase {
@override
String get name => 'stop';
@override
Future execute(List<String> parameters) {
return simpleFuture;
}
@override
String getDescription() {
return 'Exit the "${CLI.serviceName}" currently running in the background.';
}
}