독립 control plane 구성을 위해 기존 Dart CLI/runtime을 runner 앱 경계로 옮기고, 후속 client/core/root 작업을 같은 마일스톤 task group에 연결한다.
34 lines
696 B
Dart
34 lines
696 B
Dart
import 'dart:async';
|
|
|
|
import 'package:oto/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 as a service on the background.';
|
|
}
|
|
}
|
|
|
|
class CommandStop extends CommandBase {
|
|
@override
|
|
String get name => 'stop';
|
|
|
|
@override
|
|
Future execute(List<String> parameters) {
|
|
return simpleFuture;
|
|
}
|
|
|
|
@override
|
|
String getDescription() {
|
|
return ':::: Shut down the service currently running on the background.';
|
|
}
|
|
}
|