This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
AutoInitConstants.ts
89 lines (81 loc) · 2.88 KB
/
AutoInitConstants.ts
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
import { ICommandOptionDefinition } from "../../../../../cmd";
export class AutoInitConstants {
public static AUTO_INIT_OPTION_GROUP = "Automatic Config Initialization Options";
/**
* Option used to specify whether or not to use the user layer of the config
*/
public static AUTO_INIT_OPTION_USER_CONFIG: ICommandOptionDefinition = {
name: "user-config",
aliases: ["uc"],
description: "Save config in the user layer",
type: "boolean",
defaultValue: false,
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP
};
/**
* Option used to specify whether or not to use the global layer of the config
*/
public static AUTO_INIT_OPTION_GLOBAL_CONFIG: ICommandOptionDefinition = {
name: "global-config",
aliases: ["gc"],
description: "Save config in the global layer",
type: "boolean",
defaultValue: false,
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP
};
/**
* Option used to specify whether or not to do a dry run of the initialization
*/
public static AUTO_INIT_OPTION_DRY_RUN: ICommandOptionDefinition = {
name: "dry-run",
aliases: ["dr", "dry"],
description: "Display the outcome of the initialization without saving",
type: "boolean",
conflictsWith: ["edit"],
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP
};
/**
* Option used to specify whether or not to open an editor for the config
*/
public static AUTO_INIT_OPTION_EDIT: ICommandOptionDefinition = {
name: "edit",
aliases: ["e"],
description: "Open in editor after initializing the configuration",
type: "boolean",
conflictsWith: ["dry-run"],
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP
};
/**
* Option used to specify whether or not to overwrite the config
*/
public static AUTO_INIT_OPTION_OVERWRITE: ICommandOptionDefinition = {
name: "overwrite",
aliases: ["ow"],
description: "Replaces an existing configuration with a new configuration",
type: "boolean",
defaultValue: false,
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP,
implies: ["for-sure"]
};
/**
* Option used to confirm an overwrite
*/
public static AUTO_INIT_OPTION_FOR_SURE: ICommandOptionDefinition = {
name: "for-sure",
aliases: ["f"],
description: "Confirms the overwrite option",
type: "boolean",
defaultValue: false,
group: AutoInitConstants.AUTO_INIT_OPTION_GROUP
};
}