Skip to content

Commit d88a802

Browse files
authored
SWG-15720 & SWG-15721 uploading and downloading Spectral zipped rulesets (#585)
* SWG-15720 & SWG-15721 uploading and downloading Spectral zipped rulesets * Renaming the download command class * Adding tests * SWG-15720 capitalizing Spectral word * SWG-15720 & SWG-15721 adjusting for non-versioning * SWG-15720 & SWG-15721 adjusting tests * Revert "SWG-15720 & SWG-15721 adjusting tests" This reverts commit 9f5e764. * Revert "SWG-15720 & SWG-15721 adjusting for non-versioning" This reverts commit 525c0d4.
1 parent 6f518e2 commit d88a802

13 files changed

Lines changed: 1599 additions & 67 deletions

File tree

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ USAGE
146146
* [`swaggerhub project:get OWNER/PROJECT_NAME`](#swaggerhub-projectget)
147147
* [`swaggerhub project:list [OWNER]`](#swaggerhub-projectlist)
148148
* [`swaggerhub project:member:list OWNER/PROJECT_NAME`](#swaggerhub-projectmemberlist)
149+
* [`swaggerhub spectral:upload OWNER/RULESET_NAME/VERSION directory`](#swaggerhub-spectralupload)
150+
* [`swaggerhub spectral:download OWNER/RULESET_NAME/VERSION directory`](#swaggerhub-spectraldownload)
149151

150152
## `swaggerhub api:create`
151153

@@ -1372,6 +1374,55 @@ EXAMPLES
13721374
```
13731375

13741376
_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/member/list.js)_
1377+
1378+
## `swaggerhub spectral:upload`
1379+
1380+
Create or update organization's Spectral ruleset
1381+
1382+
```
1383+
USAGE
1384+
$ swaggerhub spectral:upload OWNER/RULESET_NAME/VERSION directory [-h]
1385+
1386+
ARGUMENTS
1387+
OWNER/RULESET_NAME/[VERSION] The Spectral ruleset details for SwaggerHub organization
1388+
directory Relative path to directory with ruleset files
1389+
1390+
FLAGS
1391+
-h, --help Show CLI help.
1392+
1393+
DESCRIPTION
1394+
Create or update organization's Spectral ruleset
1395+
1396+
EXAMPLES
1397+
$ swaggerhub spectral:upload my_organization/my_api_ruleset/1.0.0 rules
1398+
```
1399+
1400+
_See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/upload.js)_
1401+
1402+
1403+
## `swaggerhub spectral:download`
1404+
1405+
Fetch organization's Spectral ruleset
1406+
1407+
```
1408+
USAGE
1409+
$ swaggerhub spectral:download OWNER/RULESET_NAME/VERSION directory [-h]
1410+
1411+
ARGUMENTS
1412+
OWNER/RULESET_NAME/[VERSION] The Spectral ruleset details for SwaggerHub organization
1413+
directory Relative path to directory the ruleset files should be saved to
1414+
1415+
FLAGS
1416+
-h, --help Show CLI help.
1417+
1418+
DESCRIPTION
1419+
Fetch organization's Spectral ruleset
1420+
1421+
EXAMPLES
1422+
$ swaggerhub spectral:download my_organization/my_api_ruleset/1.0.0 rules
1423+
```
1424+
1425+
_See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/download.js)_
13751426
<!-- commandsstop -->
13761427

13771428
# Plugins

0 commit comments

Comments
 (0)