/
main.dart
43 lines (34 loc) · 887 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:chassis_forge/chassis_forge.dart';
import 'package:smart_arg_fork/smart_arg_fork.dart';
import 'ag_jq_pipe.dart';
import 'analyze.dart';
import 'deps.dart';
import 'docs.dart';
import 'format.dart'; // ignore: unused_import
import 'main.reflectable.dart';
import 'pipe.dart';
@SmartArg.reflectable
@Parser(
description: 'Dart Chassis Forge Project Helper Tools',
)
class ExampleForge extends ChassisForge with HelpArg, VerboseArg {
@Command()
late AnalyzeCommand analyze;
@Command()
late DocsCommand docs;
@Command()
late DepsCommand deps;
@Command()
late FormatCommand format;
@Command()
late ExampleForge nested;
@Command()
late PipeCommand pipe;
@Command()
late AgJqPipeCommand agJq;
}
Future<void> main(List<String> arguments) async {
initializeReflectable();
var forge = ExampleForge();
await forge.runWith(arguments);
}