- 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>
31 lines
801 B
Dart
31 lines
801 B
Dart
import 'dart:async';
|
|
|
|
import 'package:oto_cli/framework/utils/system_util.dart';
|
|
import 'package:oto_cli/cli/cli.dart';
|
|
import 'package:oto_cli/cli/commands/command_base.dart';
|
|
|
|
class CommandTemplate extends CommandBase {
|
|
@override
|
|
Map<String, List<String>> get arguments => {
|
|
"--s": [
|
|
"This is argument description template",
|
|
"This is second line."
|
|
],
|
|
"--g": ["Second argument"]
|
|
};
|
|
@override
|
|
String get name => 'template';
|
|
@override
|
|
String get usage => '--arg0 --arg1';
|
|
|
|
@override
|
|
Future execute(List<String> parameters) async {
|
|
return simpleFuture;
|
|
}
|
|
|
|
@override
|
|
String getDescription() {
|
|
var serviceName = CLI.current.config.serviceName;
|
|
return ':::: This is template command description from $serviceName.';
|
|
}
|
|
}
|