2024-10-21 03:18:25 +00:00
|
|
|
import 'dart:io';
|
|
|
|
import 'package:yaml/yaml.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
final file = File('melos.yaml');
|
|
|
|
final yamlString = file.readAsStringSync();
|
|
|
|
final yamlMap = loadYaml(yamlString);
|
|
|
|
|
|
|
|
final scripts = yamlMap['scripts'] as YamlMap;
|
|
|
|
|
2024-10-27 22:17:26 +00:00
|
|
|
print('Available Protevus Platform commands:');
|
|
|
|
print('=====================================\n');
|
2024-10-21 03:18:25 +00:00
|
|
|
|
|
|
|
scripts.forEach((key, value) {
|
|
|
|
final description =
|
|
|
|
value['description'] as String? ?? 'No description provided';
|
|
|
|
print('${key.padRight(20)} $description');
|
|
|
|
});
|
|
|
|
|
|
|
|
print('\nUsage: melos run <command>');
|
|
|
|
print(
|
|
|
|
'For more details on a specific command, use: melos run <command> --help');
|
|
|
|
}
|