generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 21
/
configMeta.ts
30 lines (26 loc) · 954 Bytes
/
configMeta.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
/*
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { ConfigValue, Messages } from '@salesforce/core';
Messages.importMessagesDirectory(__dirname);
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'config');
export enum ConfigVars {
/**
* Allow users to use the REST api for deployments.
*/
ORG_METADATA_REST_DEPLOY = 'org-metadata-rest-deploy',
}
export default [
{
key: ConfigVars.ORG_METADATA_REST_DEPLOY,
description: messages.getMessage(ConfigVars.ORG_METADATA_REST_DEPLOY),
hidden: true,
input: {
validator: (value: ConfigValue): boolean => value != null && ['true', 'false'].includes(value.toString()),
failedMessage: messages.getMessage('error.invalidBooleanConfigValue'),
},
},
];