-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcommand_constants.dart
More file actions
66 lines (60 loc) · 2.19 KB
/
command_constants.dart
File metadata and controls
66 lines (60 loc) · 2.19 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/// Stores all the commands used throughout the app that
library;
const String ksDart = 'dart';
const String ksFlutter = 'flutter';
const String ksCreate = 'create';
const String ksRun = 'run';
const String ksPub = 'pub';
const String ksGet = 'get';
const String ksFormat = 'format';
const String ksBuild = 'build';
const String ksBuildRunner = 'build_runner';
const String ksDeleteConflictOutputs = 'delete-conflicting-outputs';
const String ksDeleteConflictingOutputs = '--delete-conflicting-outputs';
const String ksNoPubGet = '--no-pub';
const String ksVersion = 'version';
const String ksEnableAnalytics = 'enable-analytics';
const String ksDisableAnalytics = 'disable-analytics';
const String ksExcludeRoute = 'exclude-route';
const String ksV1 = 'v1';
const String ksUseBuilder = 'use-builder';
const String ksLineLength = 'line-length';
const String ksTemplateType = 'template';
const String ksExcludeDependency = 'exclude-dependency';
const String ksCurrentDirectory = '.';
const String ksGlobal = 'global';
const String ksList = 'list';
const String ksActivate = 'activate';
const String ksStackedCli = 'stacked_cli';
const String ksAnalyze = 'analyze';
const String ksModel = 'model';
const String ksConfigPath = 'config-path';
const String ksWatch = 'watch';
const String ksPath = 'path';
const String ksAppMinimalTemplate = 'empty';
const String ksAppDescription = 'description';
const String ksAppOrganization = 'org';
const String ksAppPlatforms = 'platforms';
/// A list of strings that are used to run the run build_runner
/// [build or watch] --delete-conflicting-outputs command.
const List<String> buildRunnerArguments = [
ksRun,
ksBuildRunner,
];
/// A list of strings that are used to run the pub get command.
const List<String> pubGetArguments = [ksPub, ksGet];
/// A list of strings that are used to run the pub global list command.
const List<String> pubGlobalListArguments = [
ksPub,
ksGlobal,
ksList,
];
/// A list of strings that are used to run the pub global activate command.
const List<String> pubGlobalActivateArguments = [
ksPub,
ksGlobal,
ksActivate,
ksStackedCli
];
/// A list of strings that are used to run the analyze command.
const List<String> analyzeArguments = [ksAnalyze];