Skip to content

Commit dac98cd

Browse files
Merge pull request #325 from salesforcecli/cd/sf-style
feat: move commands to sf style
2 parents 3fddc30 + bf3dd11 commit dac98cd

18 files changed

Lines changed: 568 additions & 584 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
module.exports = {
8-
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license'],
8+
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/recommended'],
99
};

CHANGELOG.md

Lines changed: 29 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,261 +1,170 @@
11
## [2.1.19](https://github.com/salesforcecli/plugin-schema/compare/2.1.18...2.1.19) (2022-12-11)
22

3-
43
### Bug Fixes
54

6-
* **deps:** bump @oclif/core from 1.20.4 to 1.21.0 ([6ce1938](https://github.com/salesforcecli/plugin-schema/commit/6ce1938d14b6431859b40cb70f5c62596e0b3cb6))
7-
8-
5+
- **deps:** bump @oclif/core from 1.20.4 to 1.21.0 ([6ce1938](https://github.com/salesforcecli/plugin-schema/commit/6ce1938d14b6431859b40cb70f5c62596e0b3cb6))
96

107
## [2.1.18](https://github.com/salesforcecli/plugin-schema/compare/2.1.17...2.1.18) (2022-12-05)
118

12-
139
### Bug Fixes
1410

15-
* **deps:** bump @salesforce/core from 3.32.2 to 3.32.6 ([4e87f74](https://github.com/salesforcecli/plugin-schema/commit/4e87f74b8e257d56ffe61b5942db88fcb2b12ef1))
16-
17-
11+
- **deps:** bump @salesforce/core from 3.32.2 to 3.32.6 ([4e87f74](https://github.com/salesforcecli/plugin-schema/commit/4e87f74b8e257d56ffe61b5942db88fcb2b12ef1))
1812

1913
## [2.1.17](https://github.com/salesforcecli/plugin-schema/compare/2.1.16...2.1.17) (2022-11-27)
2014

21-
2215
### Bug Fixes
2316

24-
* **deps:** bump @salesforce/core from 3.32.1 to 3.32.2 ([7d980ae](https://github.com/salesforcecli/plugin-schema/commit/7d980aeb8b1ea385bd84fe1b30b3c2e5f6d99f15))
25-
26-
17+
- **deps:** bump @salesforce/core from 3.32.1 to 3.32.2 ([7d980ae](https://github.com/salesforcecli/plugin-schema/commit/7d980aeb8b1ea385bd84fe1b30b3c2e5f6d99f15))
2718

2819
## [2.1.16](https://github.com/salesforcecli/plugin-schema/compare/2.1.15...2.1.16) (2022-11-20)
2920

30-
3121
### Bug Fixes
3222

33-
* **deps:** bump @salesforce/command from 5.2.20 to 5.2.25 ([5a71228](https://github.com/salesforcecli/plugin-schema/commit/5a71228c1ffe373dd4b78f8597fe969c5a4341a5))
34-
35-
23+
- **deps:** bump @salesforce/command from 5.2.20 to 5.2.25 ([5a71228](https://github.com/salesforcecli/plugin-schema/commit/5a71228c1ffe373dd4b78f8597fe969c5a4341a5))
3624

3725
## [2.1.15](https://github.com/salesforcecli/plugin-schema/compare/2.1.14...2.1.15) (2022-11-13)
3826

39-
4027
### Bug Fixes
4128

42-
* **deps:** bump @oclif/core from 1.20.3 to 1.20.4 ([82a459c](https://github.com/salesforcecli/plugin-schema/commit/82a459c8fe1aca7f09fe721f4152f83ba86eb7e9))
43-
44-
29+
- **deps:** bump @oclif/core from 1.20.3 to 1.20.4 ([82a459c](https://github.com/salesforcecli/plugin-schema/commit/82a459c8fe1aca7f09fe721f4152f83ba86eb7e9))
4530

4631
## [2.1.14](https://github.com/salesforcecli/plugin-schema/compare/2.1.13...2.1.14) (2022-11-13)
4732

48-
4933
### Bug Fixes
5034

51-
* **deps:** bump @salesforce/core from 3.31.17 to 3.31.19 ([4bbdccc](https://github.com/salesforcecli/plugin-schema/commit/4bbdcccaf28d9ca0a1c78ac052fc5addc51bfdcb))
52-
53-
35+
- **deps:** bump @salesforce/core from 3.31.17 to 3.31.19 ([4bbdccc](https://github.com/salesforcecli/plugin-schema/commit/4bbdcccaf28d9ca0a1c78ac052fc5addc51bfdcb))
5436

5537
## [2.1.13](https://github.com/salesforcecli/plugin-schema/compare/2.1.12...2.1.13) (2022-11-06)
5638

57-
5839
### Bug Fixes
5940

60-
* **deps:** bump @salesforce/command from 5.2.16 to 5.2.20 ([e4d88ae](https://github.com/salesforcecli/plugin-schema/commit/e4d88ae2b18f6b6d39d141089b4a3cf6a9528af5))
61-
62-
41+
- **deps:** bump @salesforce/command from 5.2.16 to 5.2.20 ([e4d88ae](https://github.com/salesforcecli/plugin-schema/commit/e4d88ae2b18f6b6d39d141089b4a3cf6a9528af5))
6342

6443
## [2.1.12](https://github.com/salesforcecli/plugin-schema/compare/2.1.11...2.1.12) (2022-10-30)
6544

66-
6745
### Bug Fixes
6846

69-
* **deps:** bump @oclif/core from 1.19.1 to 1.20.0 ([c2f4474](https://github.com/salesforcecli/plugin-schema/commit/c2f4474ca4b1189d66e32b42cf470d7ea1dee412))
70-
71-
47+
- **deps:** bump @oclif/core from 1.19.1 to 1.20.0 ([c2f4474](https://github.com/salesforcecli/plugin-schema/commit/c2f4474ca4b1189d66e32b42cf470d7ea1dee412))
7248

7349
## [2.1.11](https://github.com/salesforcecli/plugin-schema/compare/2.1.10...2.1.11) (2022-10-24)
7450

75-
7651
### Bug Fixes
7752

78-
* **deps:** bump @oclif/core from 1.16.4 to 1.19.1 ([14c66c9](https://github.com/salesforcecli/plugin-schema/commit/14c66c9a2afecef157c46d475b327c13167b07ab))
79-
80-
53+
- **deps:** bump @oclif/core from 1.16.4 to 1.19.1 ([14c66c9](https://github.com/salesforcecli/plugin-schema/commit/14c66c9a2afecef157c46d475b327c13167b07ab))
8154

8255
## [2.1.10](https://github.com/salesforcecli/plugin-schema/compare/2.1.9...2.1.10) (2022-10-02)
8356

84-
8557
### Bug Fixes
8658

87-
* **deps:** bump @salesforce/command from 5.2.8 to 5.2.11 ([2f187ab](https://github.com/salesforcecli/plugin-schema/commit/2f187abd12e16fecccce222febc52d48a29e96b9))
88-
89-
59+
- **deps:** bump @salesforce/command from 5.2.8 to 5.2.11 ([2f187ab](https://github.com/salesforcecli/plugin-schema/commit/2f187abd12e16fecccce222febc52d48a29e96b9))
9060

9161
## [2.1.9](https://github.com/salesforcecli/plugin-schema/compare/2.1.8...2.1.9) (2022-09-30)
9262

93-
9463
### Bug Fixes
9564

96-
* **deps:** bump @salesforce/core from 3.30.8 to 3.30.9 ([bc6e8be](https://github.com/salesforcecli/plugin-schema/commit/bc6e8be6b609d25f32453c7dc47af20354fb0ab8))
97-
98-
65+
- **deps:** bump @salesforce/core from 3.30.8 to 3.30.9 ([bc6e8be](https://github.com/salesforcecli/plugin-schema/commit/bc6e8be6b609d25f32453c7dc47af20354fb0ab8))
9966

10067
## [2.1.8](https://github.com/salesforcecli/plugin-schema/compare/2.1.7...2.1.8) (2022-09-25)
10168

102-
10369
### Bug Fixes
10470

105-
* **deps:** bump @oclif/core from 1.16.3 to 1.16.4 ([4cd6cdd](https://github.com/salesforcecli/plugin-schema/commit/4cd6cdd394ac39d2dde8d4e9f161cb2ab0a48cb7))
106-
107-
71+
- **deps:** bump @oclif/core from 1.16.3 to 1.16.4 ([4cd6cdd](https://github.com/salesforcecli/plugin-schema/commit/4cd6cdd394ac39d2dde8d4e9f161cb2ab0a48cb7))
10872

10973
## [2.1.7](https://github.com/salesforcecli/plugin-schema/compare/2.1.6...2.1.7) (2022-09-25)
11074

111-
11275
### Bug Fixes
11376

114-
* **deps:** bump @salesforce/core from 3.30.2 to 3.30.8 ([ffda6ef](https://github.com/salesforcecli/plugin-schema/commit/ffda6ef44d96048331a3c2ec17d9ad9e0590b650))
115-
116-
77+
- **deps:** bump @salesforce/core from 3.30.2 to 3.30.8 ([ffda6ef](https://github.com/salesforcecli/plugin-schema/commit/ffda6ef44d96048331a3c2ec17d9ad9e0590b650))
11778

11879
## [2.1.6](https://github.com/salesforcecli/plugin-schema/compare/2.1.5...2.1.6) (2022-09-18)
11980

120-
12181
### Bug Fixes
12282

123-
* **deps:** bump @salesforce/command from 5.2.6 to 5.2.8 ([2ffb46c](https://github.com/salesforcecli/plugin-schema/commit/2ffb46cd628c0030f016bf5fe2a107672aa74b78))
124-
125-
83+
- **deps:** bump @salesforce/command from 5.2.6 to 5.2.8 ([2ffb46c](https://github.com/salesforcecli/plugin-schema/commit/2ffb46cd628c0030f016bf5fe2a107672aa74b78))
12684

12785
## [2.1.5](https://github.com/salesforcecli/plugin-schema/compare/2.1.4...2.1.5) (2022-09-18)
12886

129-
13087
### Bug Fixes
13188

132-
* **deps:** bump @salesforce/core from 3.30.0 to 3.30.2 ([94b6206](https://github.com/salesforcecli/plugin-schema/commit/94b6206ac78b74032ac15d4084fde6c2d22bb92c))
133-
134-
89+
- **deps:** bump @salesforce/core from 3.30.0 to 3.30.2 ([94b6206](https://github.com/salesforcecli/plugin-schema/commit/94b6206ac78b74032ac15d4084fde6c2d22bb92c))
13590

13691
## [2.1.4](https://github.com/salesforcecli/plugin-schema/compare/2.1.3...2.1.4) (2022-09-18)
13792

138-
13993
### Bug Fixes
14094

141-
* **deps:** bump @oclif/core from 1.16.1 to 1.16.3 ([c2a0793](https://github.com/salesforcecli/plugin-schema/commit/c2a0793eaee556fd2a74167737bde4d46d598cab))
142-
143-
95+
- **deps:** bump @oclif/core from 1.16.1 to 1.16.3 ([c2a0793](https://github.com/salesforcecli/plugin-schema/commit/c2a0793eaee556fd2a74167737bde4d46d598cab))
14496

14597
## [2.1.3](https://github.com/salesforcecli/plugin-schema/compare/2.1.2...2.1.3) (2022-09-15)
14698

147-
14899
### Bug Fixes
149100

150-
* **deps:** bump @salesforce/core from 3.26.2 to 3.30.0 ([91dde03](https://github.com/salesforcecli/plugin-schema/commit/91dde033663118cf9b0c5a9e29227b40f23158f2))
151-
152-
101+
- **deps:** bump @salesforce/core from 3.26.2 to 3.30.0 ([91dde03](https://github.com/salesforcecli/plugin-schema/commit/91dde033663118cf9b0c5a9e29227b40f23158f2))
153102

154103
## [2.1.2](https://github.com/salesforcecli/plugin-schema/compare/v2.1.1...2.1.2) (2022-09-14)
155104

156-
157105
### Bug Fixes
158106

159-
* **deps:** bump @oclif/core from 1.16.0 to 1.16.1 ([e574a2f](https://github.com/salesforcecli/plugin-schema/commit/e574a2f3f90c6f9107bb44e42294325fee73048c))
160-
161-
107+
- **deps:** bump @oclif/core from 1.16.0 to 1.16.1 ([e574a2f](https://github.com/salesforcecli/plugin-schema/commit/e574a2f3f90c6f9107bb44e42294325fee73048c))
162108

163109
## [2.1.1](https://github.com/salesforcecli/plugin-schema/compare/v2.1.0...v2.1.1) (2022-05-20)
164110

165-
166111
### Bug Fixes
167112

168-
* add prompt to examples ([335b171](https://github.com/salesforcecli/plugin-schema/commit/335b1715514397c9f6082365f6b10845448f6016))
169-
* add prompt to examples ([e5956d1](https://github.com/salesforcecli/plugin-schema/commit/e5956d10b80bae20a5a39b9d840dddb875d2aa78))
170-
171-
113+
- add prompt to examples ([335b171](https://github.com/salesforcecli/plugin-schema/commit/335b1715514397c9f6082365f6b10845448f6016))
114+
- add prompt to examples ([e5956d1](https://github.com/salesforcecli/plugin-schema/commit/e5956d10b80bae20a5a39b9d840dddb875d2aa78))
172115

173116
# [2.1.0](https://github.com/salesforcecli/plugin-schema/compare/v2.0.0...v2.1.0) (2022-05-04)
174117

175-
176118
### Features
177119

178-
* bump schema validation ([78dcffc](https://github.com/salesforcecli/plugin-schema/commit/78dcffc9945a9f15f8a9740f8d8c1257166b97ba))
179-
180-
120+
- bump schema validation ([78dcffc](https://github.com/salesforcecli/plugin-schema/commit/78dcffc9945a9f15f8a9740f8d8c1257166b97ba))
181121

182122
# [2.0.0](https://github.com/salesforcecli/plugin-schema/compare/v1.1.0...v2.0.0) (2022-04-06)
183123

184-
185124
### Bug Fixes
186125

187-
* parking orbit plugin-schema ([ea87123](https://github.com/salesforcecli/plugin-schema/commit/ea87123101d6a34e0d017f124c3caba62a0ad63b))
188-
189-
126+
- parking orbit plugin-schema ([ea87123](https://github.com/salesforcecli/plugin-schema/commit/ea87123101d6a34e0d017f124c3caba62a0ad63b))
190127

191128
# [1.1.0](https://github.com/salesforcecli/plugin-schema/compare/v1.0.10...v1.1.0) (2021-12-02)
192129

193-
194130
### Features
195131

196-
* bump deps ([75830fa](https://github.com/salesforcecli/plugin-schema/commit/75830fa414f40d1fc4f0731eaba9f6d977ceb779))
197-
198-
132+
- bump deps ([75830fa](https://github.com/salesforcecli/plugin-schema/commit/75830fa414f40d1fc4f0731eaba9f6d977ceb779))
199133

200134
## [1.0.10](https://github.com/salesforcecli/plugin-schema/compare/v1.0.9...v1.0.10) (2021-10-12)
201135

202-
203136
### Bug Fixes
204137

205-
* update dependencies ([299c7e9](https://github.com/salesforcecli/plugin-schema/commit/299c7e9582ccc16026c27b4a27afdc072013b697))
206-
207-
138+
- update dependencies ([299c7e9](https://github.com/salesforcecli/plugin-schema/commit/299c7e9582ccc16026c27b4a27afdc072013b697))
208139

209140
## [1.0.9](https://github.com/salesforcecli/plugin-schema/compare/v1.0.8...v1.0.9) (2021-10-12)
210141

211-
212-
213142
## [1.0.8](https://github.com/salesforcecli/plugin-schema/compare/v1.0.7...v1.0.8) (2021-07-01)
214143

215-
216-
217144
## [1.0.7](https://github.com/salesforcecli/plugin-schema/compare/v1.0.6...v1.0.7) (2021-05-10)
218145

219-
220-
221146
## [1.0.6](https://github.com/salesforcecli/plugin-schema/compare/v1.0.5...v1.0.6) (2021-04-13)
222147

223-
224-
225148
## [1.0.5](https://github.com/salesforcecli/plugin-schema/compare/v1.0.4...v1.0.5) (2021-04-01)
226149

227-
228150
### Bug Fixes
229151

230-
* leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
231-
232-
152+
- leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
233153

234154
## [1.0.4](https://github.com/salesforcecli/plugin-schema/compare/v1.0.3...v1.0.4) (2021-02-19)
235155

236-
237-
238156
## [1.0.3](https://github.com/salesforcecli/plugin-schema/compare/v1.0.2...v1.0.3) (2020-12-17)
239157

240-
241158
### Bug Fixes
242159

243-
* bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
244-
245-
160+
- bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
246161

247162
## [1.0.2](https://github.com/salesforcecli/plugin-schema/compare/v1.0.1...v1.0.2) (2020-12-10)
248163

249-
250-
251164
## [1.0.1](https://github.com/salesforcecli/plugin-schema/compare/v1.0.0...v1.0.1) (2020-11-04)
252165

253-
254166
### Bug Fixes
255167

256-
* added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
257-
* schema list and describe ([ccd3a9d](https://github.com/salesforcecli/plugin-schema/commit/ccd3a9d5c62e1bced20580ee17308f3936967d9d))
258-
* update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))
259-
260-
261-
168+
- added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
169+
- schema list and describe ([ccd3a9d](https://github.com/salesforcecli/plugin-schema/commit/ccd3a9d5c62e1bced20580ee17308f3936967d9d))
170+
- update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Salesforce.com, Inc.
1+
Copyright (c) 2023, Salesforce.com, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

command-snapshot.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[
22
{
3-
"command": "force:schema:sobject:describe",
3+
"command": "sobject:describe",
44
"plugin": "@salesforce/plugin-schema",
5-
"flags": ["apiversion", "json", "loglevel", "sobjecttype", "targetusername", "usetoolingapi"],
6-
"alias": []
5+
"flags": ["api-version", "json", "loglevel", "sobject", "target-org", "use-tooling-api"],
6+
"alias": ["force:schema:sobject:describe"]
77
},
88
{
9-
"command": "force:schema:sobject:list",
9+
"command": "sobject:list",
1010
"plugin": "@salesforce/plugin-schema",
11-
"flags": ["apiversion", "json", "loglevel", "sobjecttypecategory", "targetusername"],
12-
"alias": []
11+
"flags": ["api-version", "json", "loglevel", "sobject", "target-org"],
12+
"alias": ["force:schema:sobject:list"]
1313
}
1414
]

messages/describe.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

messages/describe.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# summary
2+
3+
Display the metadata for a standard or custom object or a Tooling API object.
4+
5+
# description
6+
7+
The metadata is displayed in JSON format. See this topic for a description of each property: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_describesobjects_describesobjectresult.htm.
8+
9+
This command displays metadata for Salesforce objects by default. Use the --use-tooling-api flag to view metadata for a Tooling API object.
10+
11+
# examples
12+
13+
- Display the metadata of the "Account" standard object in your default org:
14+
15+
<%= config.bin %> <%= command.id %> --sobject Account
16+
17+
- Display the metadata of the "MyObject__c" custom object in the org with alias "my-scratch-org":
18+
19+
<%= config.bin %> <%= command.id %> --sobject MyObject__c --target-org my-scratch-org
20+
21+
- Display the metadata of the ApexCodeCoverage Tooling API object in your default org:
22+
23+
<%= config.bin %> <%= command.id %> --sobject ApexCodeCoverage --use-tooling-api
24+
25+
# flags.sobject.summary
26+
27+
API name of the object to describe.
28+
29+
# flags.tooling-api.summary
30+
31+
Use Tooling API to display metadata for Tooling API objects.

messages/list.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)