@heroku/plugin-compute 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/compute/create/telemetry-drain.d.ts +20 -0
- package/lib/commands/compute/create/telemetry-drain.js +81 -0
- package/lib/commands/compute/create/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/display/telemetry-drain.d.ts +26 -0
- package/lib/commands/compute/display/telemetry-drain.js +77 -0
- package/lib/commands/compute/display/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/generate.d.ts +5 -0
- package/lib/commands/compute/generate.js +6 -0
- package/lib/commands/compute/generate.js.map +1 -1
- package/lib/commands/compute/{config/get.d.ts → get/config.d.ts} +2 -0
- package/lib/commands/compute/{config/get.js → get/config.js} +9 -2
- package/lib/commands/compute/get/config.js.map +1 -0
- package/lib/commands/compute/{config/list.d.ts → list/config.d.ts} +2 -0
- package/lib/commands/compute/{config/list.js → list/config.js} +9 -2
- package/lib/commands/compute/list/config.js.map +1 -0
- package/lib/commands/compute/list/telemetry-drain.d.ts +20 -0
- package/lib/commands/compute/list/telemetry-drain.js +89 -0
- package/lib/commands/compute/list/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/{config/set.d.ts → set/config.d.ts} +2 -0
- package/lib/commands/compute/{config/set.js → set/config.js} +9 -2
- package/lib/commands/compute/set/config.js.map +1 -0
- package/lib/commands/compute/{config/unset.d.ts → unset/config.d.ts} +2 -0
- package/lib/commands/compute/{config/unset.js → unset/config.js} +9 -2
- package/lib/commands/compute/unset/config.js.map +1 -0
- package/lib/commands/compute/update/telemetry-drain.d.ts +20 -0
- package/lib/commands/compute/update/telemetry-drain.js +69 -0
- package/lib/commands/compute/update/telemetry-drain.js.map +1 -0
- package/lib/shared/computeConfig.js +2 -2
- package/lib/shared/computeConfig.js.map +1 -1
- package/lib/shared/computeQuery.d.ts +1 -0
- package/lib/shared/computeQuery.js +37 -42
- package/lib/shared/computeQuery.js.map +1 -1
- package/lib/shared/computeTelemetryDrain.d.ts +22 -0
- package/lib/shared/computeTelemetryDrain.js +115 -0
- package/lib/shared/computeTelemetryDrain.js.map +1 -0
- package/lib/shared/herokuProxyApi.d.ts +30 -0
- package/lib/shared/herokuProxyApi.js +104 -4
- package/lib/shared/herokuProxyApi.js.map +1 -1
- package/messages/compute.create.telemetry-drain.md +53 -0
- package/messages/compute.display.telemetry-drain.md +19 -0
- package/messages/compute.errors.md +43 -1
- package/messages/compute.generate.md +8 -0
- package/messages/{compute.config.list.md → compute.list.config.md} +3 -3
- package/messages/compute.list.telemetry-drain.md +26 -0
- package/messages/compute.update.telemetry-drain.md +57 -0
- package/npm-shrinkwrap.json +258 -116
- package/oclif.manifest.json +484 -128
- package/package.json +10 -4
- package/schemas/compute-create-telemetry__drain.json +44 -0
- package/schemas/compute-display-telemetry__drain.json +54 -0
- package/schemas/compute-list-telemetry__drain.json +43 -0
- package/schemas/compute-update-telemetry__drain.json +43 -0
- package/lib/commands/compute/config/get.js.map +0 -1
- package/lib/commands/compute/config/list.js.map +0 -1
- package/lib/commands/compute/config/set.js.map +0 -1
- package/lib/commands/compute/config/unset.js.map +0 -1
- /package/messages/{compute.config.get.md → compute.get.config.md} +0 -0
- /package/messages/{compute.config.set.md → compute.set.config.md} +0 -0
- /package/messages/{compute.config.unset.md → compute.unset.config.md} +0 -0
- /package/schemas/{compute-config-get.json → compute-get-config.json} +0 -0
- /package/schemas/{compute-config-list.json → compute-list-config.json} +0 -0
- /package/schemas/{compute-config-set.json → compute-set-config.json} +0 -0
- /package/schemas/{compute-config-unset.json → compute-unset-config.json} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { type TelemetryDrainResult } from '../../../shared/computeTelemetryDrain.js';
|
|
3
|
+
export type ComputeTelemetryDrainCreateResult = TelemetryDrainResult & {
|
|
4
|
+
app: string;
|
|
5
|
+
};
|
|
6
|
+
export default class TelemetryDrainCreate extends SfCommand<ComputeTelemetryDrainCreateResult> {
|
|
7
|
+
static readonly description: string;
|
|
8
|
+
static readonly examples: string[];
|
|
9
|
+
static readonly flags: {
|
|
10
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
url: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
signals: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
transport: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
header: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
};
|
|
17
|
+
static readonly requiresProject = false;
|
|
18
|
+
static readonly summary: string;
|
|
19
|
+
run(): Promise<ComputeTelemetryDrainCreateResult>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { requireAppName, resolveComputeAppNameFromDir, validateName } from '../../../shared/computeApp.js';
|
|
19
|
+
import { resolveHerokuAppId } from '../../../shared/computeQuery.js';
|
|
20
|
+
import { exporterTypeForTransport, parseHeaderFlags, toTelemetryDrainResult, validateAndFormatSignals, } from '../../../shared/computeTelemetryDrain.js';
|
|
21
|
+
import { createTelemetryDrainViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
22
|
+
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
23
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
24
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.create.telemetry-drain');
|
|
25
|
+
export default class TelemetryDrainCreate extends SfCommand {
|
|
26
|
+
static description = messages.getMessage('description');
|
|
27
|
+
static examples = messages.getMessages('examples');
|
|
28
|
+
static flags = {
|
|
29
|
+
name: Flags.string({
|
|
30
|
+
char: 'n',
|
|
31
|
+
env: 'COMPUTE_APP_NAME',
|
|
32
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
33
|
+
}),
|
|
34
|
+
url: Flags.string({
|
|
35
|
+
required: true,
|
|
36
|
+
summary: messages.getMessage('flags.url.summary'),
|
|
37
|
+
}),
|
|
38
|
+
signals: Flags.string({
|
|
39
|
+
summary: messages.getMessage('flags.signals.summary'),
|
|
40
|
+
default: 'all',
|
|
41
|
+
}),
|
|
42
|
+
// splunk is accepted by exporterTypeForTransport but deliberately left out of `options` and the
|
|
43
|
+
// help text: http and grpc are the public transports, splunk stays hidden.
|
|
44
|
+
transport: Flags.string({
|
|
45
|
+
summary: messages.getMessage('flags.transport.summary'),
|
|
46
|
+
default: 'http',
|
|
47
|
+
}),
|
|
48
|
+
header: Flags.string({
|
|
49
|
+
multiple: true,
|
|
50
|
+
summary: messages.getMessage('flags.header.summary'),
|
|
51
|
+
description: messages.getMessage('flags.header.description'),
|
|
52
|
+
}),
|
|
53
|
+
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
54
|
+
};
|
|
55
|
+
// Org-mediated lookup by --name -- no local project files are read.
|
|
56
|
+
static requiresProject = false;
|
|
57
|
+
static summary = messages.getMessage('summary');
|
|
58
|
+
async run() {
|
|
59
|
+
const { flags } = await this.parse(TelemetryDrainCreate);
|
|
60
|
+
const name = requireAppName(flags.name ?? (await resolveComputeAppNameFromDir(process.cwd())));
|
|
61
|
+
validateName(name);
|
|
62
|
+
// Validate every input before the first network call so a typo never costs a round trip.
|
|
63
|
+
const signals = validateAndFormatSignals(flags.signals);
|
|
64
|
+
const exporterType = exporterTypeForTransport(flags.transport);
|
|
65
|
+
const headers = flags.header ? parseHeaderFlags(flags.header) : undefined;
|
|
66
|
+
const connection = flags['target-org'].getConnection();
|
|
67
|
+
const appId = await resolveHerokuAppId(connection, name);
|
|
68
|
+
const drain = await createTelemetryDrainViaProxy(connection, {
|
|
69
|
+
appId,
|
|
70
|
+
name,
|
|
71
|
+
endpoint: flags.url,
|
|
72
|
+
exporterType,
|
|
73
|
+
signals,
|
|
74
|
+
headers,
|
|
75
|
+
});
|
|
76
|
+
const result = { app: name, ...toTelemetryDrainResult(drain) };
|
|
77
|
+
this.logSuccess(messages.getMessage('info.created', [result.id, name]));
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=telemetry-drain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry-drain.js","sourceRoot":"","sources":["../../../../src/commands/compute/create/telemetry-drain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCA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,OAAO;YACP,OAAO;SACR,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,sBAAsB,CAAC,KAAK,CAAC,EAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACxE,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type ComputeTelemetryDrainDisplayResult = {
|
|
3
|
+
app: string;
|
|
4
|
+
endpoint?: string;
|
|
5
|
+
exporterType?: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
id: string;
|
|
8
|
+
ownerId?: string;
|
|
9
|
+
ownerType?: 'app' | 'space';
|
|
10
|
+
signals: string[];
|
|
11
|
+
transport?: string;
|
|
12
|
+
};
|
|
13
|
+
export default class TelemetryDrainDisplay extends SfCommand<ComputeTelemetryDrainDisplayResult> {
|
|
14
|
+
static readonly args: {
|
|
15
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
16
|
+
};
|
|
17
|
+
static readonly description: string;
|
|
18
|
+
static readonly examples: string[];
|
|
19
|
+
static readonly flags: {
|
|
20
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
};
|
|
22
|
+
static readonly requiresProject = false;
|
|
23
|
+
static readonly summary: string;
|
|
24
|
+
run(): Promise<ComputeTelemetryDrainDisplayResult>;
|
|
25
|
+
private resolveOwnerLabel;
|
|
26
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Args } from '@oclif/core';
|
|
17
|
+
import { Messages } from '@salesforce/core';
|
|
18
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
19
|
+
import { findDeveloperNameByHerokuAppId } from '../../../shared/computeQuery.js';
|
|
20
|
+
import { formatTelemetryDrainRows, transportLabelForExporterType } from '../../../shared/computeTelemetryDrain.js';
|
|
21
|
+
import { fetchTelemetryDrainViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
22
|
+
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
23
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
24
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.display.telemetry-drain');
|
|
25
|
+
export default class TelemetryDrainDisplay extends SfCommand {
|
|
26
|
+
// No --name: the drain ID is globally unique and the owning app comes from the drain's own owner.
|
|
27
|
+
static args = {
|
|
28
|
+
id: Args.string({
|
|
29
|
+
required: true,
|
|
30
|
+
summary: messages.getMessage('args.id.summary'),
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
static description = messages.getMessage('description');
|
|
34
|
+
static examples = messages.getMessages('examples');
|
|
35
|
+
static flags = {
|
|
36
|
+
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
37
|
+
};
|
|
38
|
+
static requiresProject = false;
|
|
39
|
+
static summary = messages.getMessage('summary');
|
|
40
|
+
async run() {
|
|
41
|
+
const { args, flags } = await this.parse(TelemetryDrainDisplay);
|
|
42
|
+
const connection = flags['target-org'].getConnection();
|
|
43
|
+
const drain = await fetchTelemetryDrainViaProxy(connection, { drainId: args.id });
|
|
44
|
+
const { app, display } = await this.resolveOwnerLabel(connection, drain.owner);
|
|
45
|
+
this.styledHeader('Telemetry Drain');
|
|
46
|
+
this.table({ data: formatTelemetryDrainRows(drain, display), columns: ['key', 'value'] });
|
|
47
|
+
return {
|
|
48
|
+
app,
|
|
49
|
+
ownerId: drain.owner?.id,
|
|
50
|
+
ownerType: drain.owner?.type,
|
|
51
|
+
id: drain.id ?? args.id,
|
|
52
|
+
signals: drain.signals ?? [],
|
|
53
|
+
endpoint: drain.exporter?.endpoint,
|
|
54
|
+
exporterType: drain.exporter?.type,
|
|
55
|
+
transport: drain.exporter?.type ? transportLabelForExporterType(drain.exporter.type) : undefined,
|
|
56
|
+
headers: drain.exporter?.headers,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
// Best-effort owning-app label from the drain's owner. For an app-owned drain it maps the Heroku
|
|
60
|
+
// owner id back to the compute app's DeveloperName (the value --name accepts) through the org.
|
|
61
|
+
// Returns both the machine-readable `app` -- the resolved DeveloperName, or the raw owner id when
|
|
62
|
+
// the drain is space-owned, ownerless, or no compute app matches -- and the human `display`,
|
|
63
|
+
// which qualifies an unresolved Heroku id so a reader can't mistake it for a compute app name.
|
|
64
|
+
async resolveOwnerLabel(connection, owner) {
|
|
65
|
+
const ownerId = owner?.id ?? '-';
|
|
66
|
+
if (owner?.type !== 'app' || !owner.id) {
|
|
67
|
+
return { app: ownerId, display: ownerId };
|
|
68
|
+
}
|
|
69
|
+
const developerName = await findDeveloperNameByHerokuAppId(connection, owner.id);
|
|
70
|
+
if (developerName !== undefined) {
|
|
71
|
+
return { app: developerName, display: developerName };
|
|
72
|
+
}
|
|
73
|
+
this.debug('no compute app resolved for Heroku app id %s; labelling App with the id', owner.id);
|
|
74
|
+
return { app: owner.id, display: `${owner.id} (Heroku app id)` };
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=telemetry-drain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry-drain.js","sourceRoot":"","sources":["../../../../src/commands/compute/display/telemetry-drain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAkB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,8BAA8B,EAAC,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAC,wBAAwB,EAAE,6BAA6B,EAAC,MAAM,0CAA0C,CAAC;AACjH,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,iCAAiC,CAAC,CAAC;AAkBvF,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,SAA6C;IAC9F,kGAAkG;IAC3F,MAAM,CAAU,IAAI,GAAG;QAC5B,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;SAChD,CAAC;KACH,CAAC;IAEK,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CA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CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;YAChG,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO;SACjC,CAAC;IACJ,CAAC;IAED,iGAAiG;IACjG,+FAA+F;IAC/F,kGAAkG;IAClG,6FAA6F;IAC7F,+FAA+F;IACvF,KAAK,CAAC,iBAAiB,CAC7B,UAAsB,EACtB,KAAwD;QAExD,MAAM,OAAO,GAAG,KAAK,EAAE,EAAE,IAAI,GAAG,CAAC;QACjC,IAAI,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;YACvC,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,CAAC;QAC1C,CAAC;QAED,MAAM,aAAa,GAAG,MAAM,8BAA8B,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACjF,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO,EAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAC,CAAC;QACtD,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,yEAAyE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAChG,OAAO,EAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,EAAE,kBAAkB,EAAC,CAAC;IACjE,CAAC"}
|
|
@@ -7,6 +7,10 @@ export type ComputeGenerateResult = {
|
|
|
7
7
|
path: string;
|
|
8
8
|
};
|
|
9
9
|
export default class Generate extends SfCommand<ComputeGenerateResult> {
|
|
10
|
+
static readonly deprecationOptions: {
|
|
11
|
+
to: string;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
10
14
|
static readonly description: string;
|
|
11
15
|
static readonly examples: string[];
|
|
12
16
|
static fetchTemplateSource: FetchTemplateSource;
|
|
@@ -16,6 +20,7 @@ export default class Generate extends SfCommand<ComputeGenerateResult> {
|
|
|
16
20
|
language: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
21
|
};
|
|
18
22
|
static readonly requiresProject = true;
|
|
23
|
+
static readonly state = "deprecated";
|
|
19
24
|
static readonly summary: string;
|
|
20
25
|
run(): Promise<ComputeGenerateResult>;
|
|
21
26
|
}
|
|
@@ -24,6 +24,11 @@ import { PLUGIN_NAME } from '../../shared/plugin-name.js';
|
|
|
24
24
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
25
25
|
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.generate');
|
|
26
26
|
export default class Generate extends SfCommand {
|
|
27
|
+
// oclif's Command lifecycle prints the warning from state + deprecationOptions; don't also this.warn().
|
|
28
|
+
static deprecationOptions = {
|
|
29
|
+
to: 'template generate project',
|
|
30
|
+
message: messages.getMessage('deprecation.message'),
|
|
31
|
+
};
|
|
27
32
|
static description = messages.getMessage('description');
|
|
28
33
|
static examples = messages.getMessages('examples');
|
|
29
34
|
// Overridable by tests so generate.test.ts stays offline -- production always uses the real
|
|
@@ -50,6 +55,7 @@ export default class Generate extends SfCommand {
|
|
|
50
55
|
}),
|
|
51
56
|
};
|
|
52
57
|
static requiresProject = true;
|
|
58
|
+
static state = 'deprecated';
|
|
53
59
|
static summary = messages.getMessage('summary');
|
|
54
60
|
async run() {
|
|
55
61
|
const { flags } = await this.parse(Generate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/compute/generate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAE,IAAI,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 @@ export default class ConfigGet extends SfCommand<ComputeConfigGetResult> {
|
|
|
7
7
|
static readonly args: {
|
|
8
8
|
key: import("@oclif/core/interfaces").Arg<string[] | undefined, Record<string, unknown>>;
|
|
9
9
|
};
|
|
10
|
+
static readonly deprecateAliases = true;
|
|
10
11
|
static readonly description: string;
|
|
11
12
|
static readonly examples: string[];
|
|
12
13
|
static readonly flags: {
|
|
13
14
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
15
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
16
|
};
|
|
17
|
+
static readonly hiddenAliases: string[];
|
|
16
18
|
static readonly requiresProject = false;
|
|
17
19
|
static readonly summary: string;
|
|
18
20
|
run(): Promise<ComputeConfigGetResult>;
|
|
@@ -22,7 +22,7 @@ import { resolveHerokuAppId } from '../../../shared/computeQuery.js';
|
|
|
22
22
|
import { fetchComputeConfigVarsViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
23
23
|
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
24
24
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
25
|
-
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.config
|
|
25
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.get.config');
|
|
26
26
|
export default class ConfigGet extends SfCommand {
|
|
27
27
|
static args = {
|
|
28
28
|
key: Args.string({
|
|
@@ -30,6 +30,7 @@ export default class ConfigGet extends SfCommand {
|
|
|
30
30
|
summary: messages.getMessage('args.key.summary'),
|
|
31
31
|
}),
|
|
32
32
|
};
|
|
33
|
+
static deprecateAliases = true;
|
|
33
34
|
static description = messages.getMessage('description');
|
|
34
35
|
static examples = messages.getMessages('examples');
|
|
35
36
|
static flags = {
|
|
@@ -40,6 +41,12 @@ export default class ConfigGet extends SfCommand {
|
|
|
40
41
|
}),
|
|
41
42
|
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
42
43
|
};
|
|
44
|
+
// Back-compat: the command was `compute config get` before the verb-noun migration (W-24542276).
|
|
45
|
+
// Kept as a hidden deprecated alias -- deprecateAliases above still prints a one-line warning
|
|
46
|
+
// steering users to the new id, and the old id stays out of --help and docs/. (It stays tracked
|
|
47
|
+
// in command-snapshot.json, but as its own `compute:config:get` entry rather than in this
|
|
48
|
+
// command's alias array -- see the hiddenAliases snapshot gotcha in AGENTS.md.)
|
|
49
|
+
static hiddenAliases = ['compute:config:get'];
|
|
43
50
|
// Org-mediated lookup by --name -- no local project files are read.
|
|
44
51
|
static requiresProject = false;
|
|
45
52
|
static summary = messages.getMessage('summary');
|
|
@@ -73,4 +80,4 @@ export default class ConfigGet extends SfCommand {
|
|
|
73
80
|
return { name, values };
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
|
-
//# sourceMappingURL=
|
|
83
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/commands/compute/get/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,oBAAoB,EAAE,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAC,8BAA8B,EAAC,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAA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MAAM,EAAC,CAAC;IACxB,CAAC"}
|
|
@@ -4,12 +4,14 @@ export type ComputeConfigResult = {
|
|
|
4
4
|
name: string;
|
|
5
5
|
};
|
|
6
6
|
export default class ConfigList extends SfCommand<ComputeConfigResult> {
|
|
7
|
+
static readonly deprecateAliases = true;
|
|
7
8
|
static readonly description: string;
|
|
8
9
|
static readonly examples: string[];
|
|
9
10
|
static readonly flags: {
|
|
10
11
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
};
|
|
14
|
+
static readonly hiddenAliases: string[];
|
|
13
15
|
static readonly requiresProject = false;
|
|
14
16
|
static readonly summary: string;
|
|
15
17
|
run(): Promise<ComputeConfigResult>;
|
|
@@ -21,8 +21,9 @@ import { resolveHerokuAppId } from '../../../shared/computeQuery.js';
|
|
|
21
21
|
import { fetchComputeConfigVarsViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
22
22
|
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
23
23
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
24
|
-
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.config
|
|
24
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.list.config');
|
|
25
25
|
export default class ConfigList extends SfCommand {
|
|
26
|
+
static deprecateAliases = true;
|
|
26
27
|
static description = messages.getMessage('description');
|
|
27
28
|
static examples = messages.getMessages('examples');
|
|
28
29
|
static flags = {
|
|
@@ -33,6 +34,12 @@ export default class ConfigList extends SfCommand {
|
|
|
33
34
|
}),
|
|
34
35
|
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
35
36
|
};
|
|
37
|
+
// Back-compat: the command was `compute config list` before the verb-noun migration (W-24542276).
|
|
38
|
+
// Kept as a hidden deprecated alias -- deprecateAliases above still prints a one-line warning
|
|
39
|
+
// steering users to the new id, and the old id stays out of --help and docs/. (It stays tracked
|
|
40
|
+
// in command-snapshot.json, but as its own `compute:config:list` entry rather than in this
|
|
41
|
+
// command's alias array -- see the hiddenAliases snapshot gotcha in AGENTS.md.)
|
|
42
|
+
static hiddenAliases = ['compute:config:list'];
|
|
36
43
|
// Org-mediated lookup by --name -- no local project files are read.
|
|
37
44
|
static requiresProject = false;
|
|
38
45
|
static summary = messages.getMessage('summary');
|
|
@@ -54,4 +61,4 @@ export default class ConfigList extends SfCommand {
|
|
|
54
61
|
return { name, configVars };
|
|
55
62
|
}
|
|
56
63
|
}
|
|
57
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/commands/compute/list/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAC,8BAA8B,EAAC,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,qBAAqB,CAAC,CAAC;AAO3E,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAA8B;IAC7D,MAAM,CAAU,gBAAgB,GAAG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AAC;QAEhF,MAAM,UAAU,GAA2B,EAAE,CAAC;QAC9C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC;YAClD,UAAU,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,cAAc,CAAC,CAAC;QACzC,KAAK,MAAM,IAAI,IAAI,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QAED,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;IAC5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type ComputeTelemetryDrainListResult = {
|
|
3
|
+
drains: Array<{
|
|
4
|
+
endpoint?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
signals: string[];
|
|
7
|
+
}>;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export default class TelemetryDrainList extends SfCommand<ComputeTelemetryDrainListResult> {
|
|
11
|
+
static readonly description: string;
|
|
12
|
+
static readonly examples: string[];
|
|
13
|
+
static readonly flags: {
|
|
14
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
};
|
|
17
|
+
static readonly requiresProject = false;
|
|
18
|
+
static readonly summary: string;
|
|
19
|
+
run(): Promise<ComputeTelemetryDrainListResult>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { requireAppName, resolveComputeAppNameFromDir, validateName } from '../../../shared/computeApp.js';
|
|
19
|
+
import { resolveHerokuAppId } from '../../../shared/computeQuery.js';
|
|
20
|
+
import { listTelemetryDrainsViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
21
|
+
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
22
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
23
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.list.telemetry-drain');
|
|
24
|
+
// Dash placeholder for an empty table cell -- matches the other compute tables (see display.ts).
|
|
25
|
+
const DASH = '-';
|
|
26
|
+
// Alphabetical compare where undefined sorts last, so absent values collect at the bottom of the
|
|
27
|
+
// table (a `-` means "nothing here" and belongs below the real values).
|
|
28
|
+
function compareOptional(a, b) {
|
|
29
|
+
if (a === b)
|
|
30
|
+
return 0;
|
|
31
|
+
if (a === undefined)
|
|
32
|
+
return 1;
|
|
33
|
+
if (b === undefined)
|
|
34
|
+
return -1;
|
|
35
|
+
return a.localeCompare(b);
|
|
36
|
+
}
|
|
37
|
+
// Orders drains alphabetically by endpoint, tiebreaking by id so the result is a pure function of
|
|
38
|
+
// the data rather than the API's unspecified order. endpoint-less and id-less drains sort last.
|
|
39
|
+
function byEndpointThenId(a, b) {
|
|
40
|
+
return compareOptional(a.endpoint, b.endpoint) || compareOptional(a.id, b.id);
|
|
41
|
+
}
|
|
42
|
+
function toRow(drain) {
|
|
43
|
+
return {
|
|
44
|
+
id: drain.id ?? DASH,
|
|
45
|
+
signals: drain.signals.length > 0 ? drain.signals.join(', ') : DASH,
|
|
46
|
+
endpoint: drain.endpoint ?? DASH,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export default class TelemetryDrainList extends SfCommand {
|
|
50
|
+
static description = messages.getMessage('description');
|
|
51
|
+
static examples = messages.getMessages('examples');
|
|
52
|
+
static flags = {
|
|
53
|
+
name: Flags.string({
|
|
54
|
+
char: 'n',
|
|
55
|
+
env: 'COMPUTE_APP_NAME',
|
|
56
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
57
|
+
}),
|
|
58
|
+
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
59
|
+
};
|
|
60
|
+
// Org-mediated lookup by --name -- no local project files are read.
|
|
61
|
+
static requiresProject = false;
|
|
62
|
+
static summary = messages.getMessage('summary');
|
|
63
|
+
async run() {
|
|
64
|
+
const { flags } = await this.parse(TelemetryDrainList);
|
|
65
|
+
const name = requireAppName(flags.name ?? (await resolveComputeAppNameFromDir(process.cwd())));
|
|
66
|
+
validateName(name);
|
|
67
|
+
const connection = flags['target-org'].getConnection();
|
|
68
|
+
const appId = await resolveHerokuAppId(connection, name);
|
|
69
|
+
const fetched = await listTelemetryDrainsViaProxy(connection, { name, appId });
|
|
70
|
+
// The API order is unspecified, so sort client-side by endpoint for a stable, scannable table.
|
|
71
|
+
const drains = fetched
|
|
72
|
+
.map(drain => ({
|
|
73
|
+
id: drain.id,
|
|
74
|
+
signals: drain.signals ?? [],
|
|
75
|
+
endpoint: drain.exporter?.endpoint,
|
|
76
|
+
}))
|
|
77
|
+
.toSorted(byEndpointThenId);
|
|
78
|
+
if (drains.length === 0) {
|
|
79
|
+
this.info(messages.getMessage('info.noDrainsFound', [name]));
|
|
80
|
+
return { name, drains };
|
|
81
|
+
}
|
|
82
|
+
this.styledHeader(`${name} Telemetry Drains`);
|
|
83
|
+
const data = drains.map(drain => toRow(drain));
|
|
84
|
+
const columns = ['id', 'signals', 'endpoint'];
|
|
85
|
+
this.table({ data, columns });
|
|
86
|
+
return { name, drains };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=telemetry-drain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry-drain.js","sourceRoot":"","sources":["../../../../src/commands/compute/list/telemetry-drain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,8BAA8B,CAAC,CAAC;AAEpF,iGAAiG;AACjG,MAAM,IAAI,GAAG,GAAG,CAAC;AAYjB,iGAAiG;AACjG,wEAAwE;AACxE,SAAS,eAAe,CAAC,CAAqB,EAAE,CAAqB;IACnE,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtB,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,CAAC,CAAC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AAO,GAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC,CAAC;QAE5B,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;IACxB,CAAC"}
|
|
@@ -8,12 +8,14 @@ export default class ConfigSet extends SfCommand<ComputeConfigSetResult> {
|
|
|
8
8
|
static readonly args: {
|
|
9
9
|
pair: import("@oclif/core/interfaces").Arg<string[] | undefined, Record<string, unknown>>;
|
|
10
10
|
};
|
|
11
|
+
static readonly deprecateAliases = true;
|
|
11
12
|
static readonly description: string;
|
|
12
13
|
static readonly examples: string[];
|
|
13
14
|
static readonly flags: {
|
|
14
15
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
16
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
17
|
};
|
|
18
|
+
static readonly hiddenAliases: string[];
|
|
17
19
|
static readonly requiresProject = false;
|
|
18
20
|
static readonly summary: string;
|
|
19
21
|
run(): Promise<ComputeConfigSetResult>;
|
|
@@ -21,7 +21,7 @@ import { resolveHerokuAppId } from '../../../shared/computeQuery.js';
|
|
|
21
21
|
import { fetchLatestReleaseVersionViaProxy, updateComputeConfigVarsViaProxy } from '../../../shared/herokuProxyApi.js';
|
|
22
22
|
import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
|
|
23
23
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
24
|
-
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.config
|
|
24
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.set.config');
|
|
25
25
|
// Splits on the first = only, so a value that itself contains one (e.g. a connection string's
|
|
26
26
|
// query params) isn't truncated. Requires a non-empty key.
|
|
27
27
|
const PAIR_PATTERN = /^([^=]+)=(.*)$/v;
|
|
@@ -32,6 +32,7 @@ export default class ConfigSet extends SfCommand {
|
|
|
32
32
|
summary: messages.getMessage('args.pair.summary'),
|
|
33
33
|
}),
|
|
34
34
|
};
|
|
35
|
+
static deprecateAliases = true;
|
|
35
36
|
static description = messages.getMessage('description');
|
|
36
37
|
static examples = messages.getMessages('examples');
|
|
37
38
|
static flags = {
|
|
@@ -42,6 +43,12 @@ export default class ConfigSet extends SfCommand {
|
|
|
42
43
|
}),
|
|
43
44
|
'target-org': Flags.requiredOrg({ char: 'o' }),
|
|
44
45
|
};
|
|
46
|
+
// Back-compat: the command was `compute config set` before the verb-noun migration (W-24542276).
|
|
47
|
+
// Kept as a hidden deprecated alias -- deprecateAliases above still prints a one-line warning
|
|
48
|
+
// steering users to the new id, and the old id stays out of --help and docs/. (It stays tracked
|
|
49
|
+
// in command-snapshot.json, but as its own `compute:config:set` entry rather than in this
|
|
50
|
+
// command's alias array -- see the hiddenAliases snapshot gotcha in AGENTS.md.)
|
|
51
|
+
static hiddenAliases = ['compute:config:set'];
|
|
45
52
|
// Org-mediated lookup by --name -- no local project files are read.
|
|
46
53
|
static requiresProject = false;
|
|
47
54
|
static summary = messages.getMessage('summary');
|
|
@@ -96,4 +103,4 @@ export default class ConfigSet extends SfCommand {
|
|
|
96
103
|
return release === undefined ? { name, configVars: updates } : { name, configVars: updates, release };
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
//# sourceMappingURL=
|
|
106
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/commands/compute/set/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OA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ends SfCommand<ComputeConfigUnsetResult> {
|
|
|
8
8
|
static readonly args: {
|
|
9
9
|
key: import("@oclif/core/interfaces").Arg<string[] | undefined, Record<string, unknown>>;
|
|
10
10
|
};
|
|
11
|
+
static readonly deprecateAliases = true;
|
|
11
12
|
static readonly description: string;
|
|
12
13
|
static readonly examples: string[];
|
|
13
14
|
static readonly flags: {
|
|
14
15
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
16
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
17
|
};
|
|
18
|
+
static readonly hiddenAliases: string[];
|
|
17
19
|
static readonly requiresProject = false;
|
|
18
20
|
static readonly summary: string;
|
|
19
21
|
run(): Promise<ComputeConfigUnsetResult>;
|