UNPKG

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