UNPKG

3.34 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) 2018, salesforce.com, inc.
4 * All rights reserved.
5 * SPDX-License-Identifier: BSD-3-Clause
6 * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7 */
8Object.defineProperty(exports, "__esModule", { value: true });
9exports.ForceCommand = void 0;
10// This is a doc command
11/* istanbul ignore file */
12const command_1 = require("@salesforce/command");
13const configApi_1 = require("../lib/core/configApi");
14const _getAsciiSignature = apiVersion => `
15 DX DX DX
16 DX DX DX DX DX DX DX DX DX
17 DX DX DX DX DX DX DX DX DX DX DX DX
18 DX DX DX DX DX DX DX DX DX DX
19 DX DX DX DX DX DX DX DX DX DX
20 DX DX DX DX DX DX DX DX DX DX DX
21 DX DX DX DX DX DX DX DX
22 DX DX DX DX DX DX
23 DX DX DX DX
24 DX DX DX DX
25 DX DX DX DX
26 DX DX DX DX
27 DX DX DX DX
28 DX DX DX DX
29DX DX DX DX
30DX DX DX DX
31DX DX DX DX
32 DX DX DX DX DX
33 DX DX DX DX DX DX DX DX
34 DX DX DX DX DX DX DX
35 DX DX DX DX DX DX DX DX
36 DX DX DX DX DX DX DX DX DX DX DX
37 DX DX DX DX DX DX DX DX DX
38 DX DX DX DX
39 DX DX DX DX DX DX
40 DX DX DX DX DX DX v${apiVersion}
41 DX DX DX
42
43* Salesforce CLI Release Notes: https://github.com/forcedotcom/cli/tree/master/releasenotes
44* Salesforce DX Setup Guide: https://sfdc.co/sfdx_setup_guide
45* Salesforce DX Developer Guide: https://sfdc.co/sfdx_dev_guide
46* Salesforce CLI Command Reference: https://sfdc.co/sfdx_cli_reference
47* Salesforce Extensions for VS Code: https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode
48`;
49class ForceCommand extends command_1.SfdxCommand {
50 async run() {
51 const apiVersion = new configApi_1.Config().getApiVersion();
52 this.ux.log(_getAsciiSignature(apiVersion));
53 return { apiVersion };
54 }
55 _help() {
56 const HHelp = require('@oclif/plugin-help').default;
57 const help = new HHelp(this.config);
58 // We need to include force in the args for topics to be shown
59 help.showHelp(process.argv.slice(2));
60 return this.exit(0);
61 }
62}
63exports.ForceCommand = ForceCommand;
64ForceCommand.hidden = true;
65
66//# sourceMappingURL=force.js.map