- Copy all used dart_framework files into lib/framework/ - Replace all package:dart_framework/ imports with package:oto_cli/framework/ - Add yaml, archive, ftpconnect as explicit direct dependencies - Remove dart_framework git dependency from pubspec.yaml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
703 B
Dart
34 lines
703 B
Dart
import 'dart:async';
|
|
|
|
import 'package:oto_cli/cli/commands/command_base.dart';
|
|
import 'package:oto_cli/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.';
|
|
}
|
|
}
|