Skip to content

Commit 0c1133f

Browse files
Release v0.1.0
* Create add.ts * Automatic update on Toolbelt plugin documentation * Remove color script * CHANGELOG * Lint * Automatic update on Toolbelt plugin documentation * Release v0.1.0 * Automatic update on Toolbelt plugin documentation Co-authored-by: Thiago Veras <[email protected]>
1 parent 6db2584 commit 0c1133f

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

.github/workflows/plugin-documentation.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: yarn install
2222
- name: Update README
2323
run: yarn prepack
24+
- name: Remove color char from README
25+
run: curl 'https://vtex-toolbelt-test.s3.us-east-2.amazonaws.com/removeTerminalColorFromFile.sh' > tmpColorScrip.sh && bash tmpColorScrip.sh && rm tmpColorScrip.sh
2426
- name: Commit changes
2527
uses: EndBug/add-and-commit@v4
2628
with:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.1.0] - 2021-03-11
10+
11+
### Changed
12+
- [Messages] Improve UX
913
## [0.0.1] - 2021-01-14
1014

1115
### Changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ npm install -g @vtex/cli-plugin-add
2929
$ vtex COMMAND
3030
running command...
3131
$ vtex (-v|--version|version)
32-
@vtex/cli-plugin-add/0.0.0 linux-x64 node-v12.20.0
32+
@vtex/cli-plugin-add/0.1.0 linux-x64 node-v12.21.0
3333
$ vtex --help [COMMAND]
3434
USAGE
3535
$ vtex COMMAND
@@ -42,12 +42,18 @@ USAGE
4242

4343
## `vtex add APPID [ITHAPPID]`
4444

45-
Add app(s) to the manifest dependencies
45+
Adds the specified app(s) to the manifest's dependencies.
4646

4747
```
4848
USAGE
4949
$ vtex add APPID [ITHAPPID]
5050
51+
ARGUMENTS
52+
APPID Name and version (`{vendor}.{appname}@{x.x.x}`) of the dependency to include in the manifest.json file.
53+
54+
ITHAPPID Names and versions (`{vendor}.{appname}@{x.x.x}`) of the multiple dependencies to include in the
55+
manifest.json file.
56+
5157
OPTIONS
5258
-h, --help show CLI help
5359
-v, --verbose Show debug level logs
@@ -57,5 +63,5 @@ EXAMPLE
5763
5864
```
5965

60-
_See code: [build/commands/add.ts](https://github.com/vtex/cli-plugin-template/blob/v0.0.0/build/commands/add.ts)_
66+
_See code: [build/commands/add.ts](https://github.com/vtex/cli-plugin-template/blob/v0.1.0/build/commands/add.ts)_
6167
<!-- commandsstop -->

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vtex/cli-plugin-add",
33
"description": "vtex plugin add",
4-
"version": "0.0.1",
4+
"version": "0.1.0",
55
"bugs": "https://github.com/vtex/cli-plugin-add/issues",
66
"dependencies": {
77
"@oclif/command": "^1",

src/commands/add.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CustomCommand } from 'vtex'
22
import appsAdd from '../modules/add'
33

44
export default class Add extends CustomCommand {
5-
static description = 'Add app(s) to the manifest dependencies'
5+
static description = "Adds the specified app(s) to the manifest's dependencies."
66

77
static examples = ['vtex add [email protected]']
88

@@ -13,8 +13,19 @@ export default class Add extends CustomCommand {
1313
static strict = false
1414

1515
static args = [
16-
{ name: 'appId', required: true },
17-
{ name: 'ithAppId', required: false, multiple: true },
16+
{
17+
name: 'appId',
18+
required: true,
19+
description:
20+
'Name and version (`{vendor}.{appname}@{x.x.x}`) of the dependency to include in the manifest.json file.',
21+
},
22+
{
23+
name: 'ithAppId',
24+
required: false,
25+
multiple: true,
26+
description:
27+
'Names and versions (`{vendor}.{appname}@{x.x.x}`) of the multiple dependencies to include in the manifest.json file.',
28+
},
1829
]
1930

2031
async run() {

0 commit comments

Comments
 (0)