Skip to content

Commit 097b7a2

Browse files
committed
+Update dependencies
1 parent 184b8d8 commit 097b7a2

File tree

5 files changed

+50
-136
lines changed

5 files changed

+50
-136
lines changed

.gitignore

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,29 @@
1010
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111
##.title~
1212

13-
**/.dart_tool/
13+
# MacOS.
1414
**/.DS_Store
15-
**/build/
16-
**/pubspec.lock
17-
**/.github/.git
18-
**/.metadata
15+
16+
# Dart & Flutter.
17+
**/.dart_tool/
1918
**/.flutter-plugins
2019
**/.flutter-plugins-dependencies
20+
**/.metadata
21+
**/.pub-cache/
22+
**/.pub/
23+
**/build/
2124
**/pubspec_overrides.yaml
25+
**/pubspec.lock
26+
**/custom_lint.log
27+
28+
# GitHub.
29+
**/.github/.git
2230

23-
# Don't support IntelliJ.
24-
**/*.iml
25-
**/*.idea/
31+
# Firebase.
32+
**/.firebase
33+
**/firebase-debug.log
2634

27-
# custom_lint
28-
**/custom_lint.log
35+
# Android
36+
/android/app/debug
37+
/android/app/profile
38+
/android/app/release

DEVELOPER_NOTES.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

HOW_IT_WORKS.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/src/cli_parser/cli_parser.dart

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ sealed class Param {
8989
void add(ArgParser argParser);
9090

9191
Flag get asFlag => this as Flag;
92-
MultiOption get asMultiOption => this as MultiOption;
93-
Option get asOption => this as Option;
92+
MultiOptionParam get asMultiOption => this as MultiOptionParam;
93+
OptionParam get asOption => this as OptionParam;
9494

9595
@override
9696
bool operator ==(Object other) {
@@ -159,15 +159,15 @@ final class Flag extends Param {
159159

160160
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
161161

162-
final class Option extends Param {
162+
final class OptionParam extends Param {
163163
final String? valueHelp;
164164
final Iterable<String>? allowed;
165165
final Map<String, String>? allowedHelp;
166166
final String? defaultsTo;
167167
final void Function(String?)? callback;
168168
final bool mandatory;
169169

170-
const Option({
170+
const OptionParam({
171171
required super.name,
172172
super.abbr,
173173
super.help,
@@ -198,7 +198,7 @@ final class Option extends Param {
198198
);
199199
}
200200

201-
Option copyWith({
201+
OptionParam copyWith({
202202
String? name,
203203
String? abbr,
204204
String? help,
@@ -211,7 +211,7 @@ final class Option extends Param {
211211
bool? hide,
212212
List<String>? aliases,
213213
}) {
214-
return Option(
214+
return OptionParam(
215215
name: name ?? this.name,
216216
abbr: abbr ?? this.abbr,
217217
help: help ?? this.help,
@@ -229,15 +229,15 @@ final class Option extends Param {
229229

230230
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
231231

232-
final class MultiOption extends Param {
232+
final class MultiOptionParam extends Param {
233233
final String? valueHelp;
234234
final Iterable<String>? allowed;
235235
final Map<String, String>? allowedHelp;
236236
final Iterable<String>? defaultsTo;
237237
final void Function(List<String>)? callback;
238238
final bool splitCommas;
239239

240-
const MultiOption({
240+
const MultiOptionParam({
241241
required super.name,
242242
super.abbr,
243243
super.help,
@@ -268,7 +268,7 @@ final class MultiOption extends Param {
268268
);
269269
}
270270

271-
MultiOption copyWith({
271+
MultiOptionParam copyWith({
272272
String? name,
273273
String? abbr,
274274
String? help,
@@ -281,7 +281,7 @@ final class MultiOption extends Param {
281281
bool? hide,
282282
List<String>? aliases,
283283
}) {
284-
return MultiOption(
284+
return MultiOptionParam(
285285
name: name ?? this.name,
286286
abbr: abbr ?? this.abbr,
287287
help: help ?? this.help,
@@ -315,25 +315,25 @@ enum DefaultFlags {
315315
}
316316
}
317317

318-
enum DefaultOptions {
318+
enum DefaultOptionParams {
319319
DART_SDK(
320-
Option(
320+
OptionParam(
321321
name: 'dart-sdk',
322322
help:
323323
'Dart SDK path. Alternatively, set the "DART_SDK" path env variable.',
324324
),
325325
),
326-
INPUT_PATH(Option(name: 'input', abbr: 'i', help: 'Source input path.')),
327-
OUTPUT_PATH(Option(name: 'output', abbr: 'o', help: 'Output path.')),
326+
INPUT_PATH(OptionParam(name: 'input', abbr: 'i', help: 'Source input path.')),
327+
OUTPUT_PATH(OptionParam(name: 'output', abbr: 'o', help: 'Output path.')),
328328
GENERATED_OUTPUT(
329-
Option(name: 'output', abbr: 'o', help: 'Generated output path.'),
329+
OptionParam(name: 'output', abbr: 'o', help: 'Generated output path.'),
330330
),
331331
TEMPLATE_PATH_OR_URL(
332-
Option(name: 'template', abbr: 't', help: 'Source template path or URL.'),
332+
OptionParam(name: 'template', abbr: 't', help: 'Source template path or URL.'),
333333
);
334334

335-
final Option option;
336-
const DefaultOptions(this.option);
335+
final OptionParam option;
336+
const DefaultOptionParams(this.option);
337337

338338
String get name => option.name;
339339

@@ -345,37 +345,37 @@ enum DefaultOptions {
345345

346346
enum DefaultMultiOptions {
347347
ROOTS(
348-
MultiOption(
348+
MultiOptionParam(
349349
name: 'roots',
350350
abbr: 'r',
351351
help: 'Root directory input paths.',
352352
defaultsTo: ['.'],
353353
),
354354
),
355355
SUBS(
356-
MultiOption(
356+
MultiOptionParam(
357357
name: 'subs',
358358
abbr: 's',
359359
help: 'Sub-directory input paths.',
360360
defaultsTo: ['.'],
361361
),
362362
),
363363
PATH_PATTERNS(
364-
MultiOption(
364+
MultiOptionParam(
365365
name: 'patterns',
366366
abbr: 'p',
367367
help: 'Patterns to match paths to include.',
368368
),
369369
),
370370
TEMPLATES(
371-
MultiOption(
371+
MultiOptionParam(
372372
name: 'templates',
373373
abbr: 't',
374374
help: 'Source template paths or URLs.',
375375
),
376376
);
377377

378-
final MultiOption multiOption;
378+
final MultiOptionParam multiOption;
379379
const DefaultMultiOptions(this.multiOption);
380380

381381
String get name => multiOption.name;

pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repository: https://github.com/dev-cetera/df_gen_core
1616
funding:
1717
- https://www.buymeacoffee.com/dev_cetera
1818
description: A package that provides core utilities for practical code generation.
19-
version: 0.6.16
19+
version: 0.7.0
2020

2121
## -----------------------------------------------------------------------------
2222

@@ -26,12 +26,6 @@ environment:
2626
## -----------------------------------------------------------------------------
2727

2828
dependencies:
29-
df_collection: ^0.9.8
30-
df_config: ^0.7.5
31-
df_log: ^0.3.19
32-
df_safer_dart: ^0.16.3
33-
df_string: ^0.2.7
34-
df_type: ^0.14.2
3529
analyzer: ^7.4.5
3630
args: ^2.7.0
3731
collection: ^1.19.1
@@ -40,6 +34,12 @@ dependencies:
4034
meta: ^1.16.0
4135
path: ^1.9.1
4236
source_gen: ^2.0.0
37+
df_collection: ^0.9.8
38+
df_config: ^0.7.5
39+
df_log: ^0.3.19
40+
df_safer_dart: ^0.16.3
41+
df_string: ^0.2.9
42+
df_type: ^0.14.2
4343

4444
## -----------------------------------------------------------------------------
4545

0 commit comments

Comments
 (0)