File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 7
7
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
8
8
//.title~
9
9
10
- import 'dart:io' show Directory;
10
+ // import 'dart:io' show Directory;
11
11
12
12
import 'package:df_generate_screen/df_generate_screen.dart' ;
13
13
import 'package:df_log/df_log.dart' ;
@@ -16,11 +16,10 @@ import 'package:df_log/df_log.dart';
16
16
17
17
void main (List <String > args) async {
18
18
DebugLog .debugOnly = false ;
19
- final currentDir = Directory .current.path;
20
19
await runGenerateScreensApp ([
21
- '-r' ,
22
- currentDir,
23
- '-s' ,
20
+ '--class-name' ,
24
21
args.first,
22
+ '-o' ,
23
+ '.' ,
25
24
]);
26
25
}
Original file line number Diff line number Diff line change @@ -49,27 +49,23 @@ Future<void> runGenerateScreensApp(List<String> args) async {
49
49
..addOption (
50
50
'bindings-template' ,
51
51
help: 'Bindings template file path.' ,
52
- defaultsTo: '' ,
53
52
)
54
53
..addOption (
55
54
'controller-template' ,
56
55
help: 'Controller template file path.' ,
57
- defaultsTo: '' ,
58
56
)
59
57
..addOption (
60
58
'view-template' ,
61
59
help: 'View template file path.' ,
62
- defaultsTo: '' ,
63
60
)
64
61
..addOption (
65
62
'screen-template' ,
66
63
help: 'Screen template file path.' ,
67
- defaultsTo: '' ,
68
64
)
69
65
..addOption (
70
66
'path' ,
71
67
help: 'Screen path.' ,
72
- defaultsTo: '' ,
68
+ defaultsTo: '. ' ,
73
69
)
74
70
..addOption (
75
71
'is-only-accessible-if-logged-in' ,
@@ -94,11 +90,9 @@ Future<void> runGenerateScreensApp(List<String> args) async {
94
90
..addOption (
95
91
'makeup' ,
96
92
help: 'Screen makeup.' ,
93
+ defaultsTo: '' ,
97
94
)
98
- ..addOption (
99
- 'default-title' ,
100
- help: 'Screen title.' ,
101
- )
95
+ ..addOption ('default-title' , help: 'Screen title.' , defaultsTo: 'Title' )
102
96
..addOption (
103
97
'part-file-dirs' ,
104
98
help: 'Part file directories separated by `&`.' ,
You can’t perform that action at this time.
0 commit comments