Skip to content

Commit d1541d1

Browse files
authored
Add salesforce cli as a tool (#442)
1 parent 844628f commit d1541d1

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

tools/sfdx/plugin.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 0.1
2+
tools:
3+
definitions:
4+
- name: sfdx
5+
runtime: node
6+
package: "@salesforce/cli"
7+
known_good_version: 2.0.1
8+
shims:
9+
- name: sfdx
10+
target: sfdx
11+
- name: sf
12+
target: sf

tools/sfdx/sfdx.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { makeToolTestConfig, toolTest } from "tests";
2+
3+
toolTest({
4+
toolName: "sfdx",
5+
toolVersion: "2.0.1",
6+
testConfigs: [
7+
makeToolTestConfig({
8+
command: ["sfdx", "--version"],
9+
expectedOut: "2.0.1",
10+
}),
11+
makeToolTestConfig({
12+
command: ["sf", "--version"],
13+
expectedOut: "2.0.1",
14+
}),
15+
],
16+
});

0 commit comments

Comments
 (0)