Skip to content

Commit 4559729

Browse files
authored
Merge pull request #81 from hackmdio/release/2.3.1
Release 2.3.1
2 parents 6498d4f + c6e34c0 commit 4559729

File tree

3 files changed

+94
-13
lines changed

3 files changed

+94
-13
lines changed

README.md

+79-9
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ npm install -g @hackmd/hackmd-cli
2828
$ hackmd-cli COMMAND
2929
running command...
3030
$ hackmd-cli (--version|-v)
31-
@hackmd/hackmd-cli/2.3.0 darwin-arm64 node-v18.14.2
31+
@hackmd/hackmd-cli/2.3.1 darwin-arm64 node-v18.14.2
3232
$ hackmd-cli --help [COMMAND]
3333
USAGE
3434
$ hackmd-cli COMMAND
@@ -97,6 +97,9 @@ All available configurations are listed in the table below.
9797
## Commands
9898

9999
<!-- commands -->
100+
* [`hackmd-cli completion`](#hackmd-cli-completion)
101+
* [`hackmd-cli completion generate`](#hackmd-cli-completion-generate)
102+
* [`hackmd-cli completion generate alias ALIAS`](#hackmd-cli-completion-generate-alias-alias)
100103
* [`hackmd-cli export`](#hackmd-cli-export)
101104
* [`hackmd-cli help [COMMANDS]`](#hackmd-cli-help-commands)
102105
* [`hackmd-cli history`](#hackmd-cli-history)
@@ -114,6 +117,73 @@ All available configurations are listed in the table below.
114117
* [`hackmd-cli version`](#hackmd-cli-version)
115118
* [`hackmd-cli whoami`](#hackmd-cli-whoami)
116119

120+
## `hackmd-cli completion`
121+
122+
Generate shell completion script
123+
124+
```
125+
USAGE
126+
$ hackmd-cli completion -s bash|fish|zsh
127+
128+
FLAGS
129+
-s, --shell=<option> (required) Name of shell
130+
<options: bash|fish|zsh>
131+
132+
DESCRIPTION
133+
Generate shell completion script
134+
135+
Run this command to see instructions for your shell.
136+
137+
EXAMPLES
138+
$ hackmd-cli completion --shell zsh
139+
```
140+
141+
_See code: [oclif-plugin-completion](https://github.com/MunifTanjim/oclif-plugin-completion/blob/0.6.0/src/commands/completion/index.ts)_
142+
143+
## `hackmd-cli completion generate`
144+
145+
Generates completion script
146+
147+
```
148+
USAGE
149+
$ hackmd-cli completion generate -s bash|fish|zsh
150+
151+
FLAGS
152+
-s, --shell=<option> (required) Name of shell
153+
<options: bash|fish|zsh>
154+
155+
DESCRIPTION
156+
Generates completion script
157+
158+
Run the "completion" command to see instructions about how to use the script generated by this command.
159+
160+
EXAMPLES
161+
$ hackmd-cli completion:generate --shell zsh
162+
```
163+
164+
## `hackmd-cli completion generate alias ALIAS`
165+
166+
Generates completion script for alias
167+
168+
```
169+
USAGE
170+
$ hackmd-cli completion generate alias ALIAS -s bash|fish
171+
172+
ARGUMENTS
173+
ALIAS name of the alias
174+
175+
FLAGS
176+
-s, --shell=<option> (required) Name of shell
177+
<options: bash|fish>
178+
179+
DESCRIPTION
180+
Generates completion script for alias
181+
182+
This needs the completion script for the main command to be present.
183+
184+
Check the "completion:generate" command.
185+
```
186+
117187
## `hackmd-cli export`
118188

119189
Export note content
@@ -134,7 +204,7 @@ EXAMPLES
134204
# A note to be exported
135205
```
136206

137-
_See code: [src/commands/export.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/export.ts)_
207+
_See code: [src/commands/export.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/export.ts)_
138208

139209
## `hackmd-cli help [COMMANDS]`
140210

@@ -188,7 +258,7 @@ EXAMPLES
188258
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
189259
```
190260

191-
_See code: [src/commands/history.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/history.ts)_
261+
_See code: [src/commands/history.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/history.ts)_
192262

193263
## `hackmd-cli login`
194264

@@ -210,7 +280,7 @@ EXAMPLES
210280
Login successfully
211281
```
212282

213-
_See code: [src/commands/login.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/login.ts)_
283+
_See code: [src/commands/login.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/login.ts)_
214284

215285
## `hackmd-cli logout`
216286

@@ -231,7 +301,7 @@ EXAMPLES
231301
You've logged out successfully
232302
```
233303

234-
_See code: [src/commands/logout.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/logout.ts)_
304+
_See code: [src/commands/logout.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/logout.ts)_
235305

236306
## `hackmd-cli notes`
237307

@@ -265,7 +335,7 @@ EXAMPLES
265335
raUuSTetT5uQbqQfLnz9lA CLI test note gvfz2UB5THiKABQJQnLs6Q null
266336
```
267337

268-
_See code: [src/commands/notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/notes/index.ts)_
338+
_See code: [src/commands/notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/notes/index.ts)_
269339

270340
## `hackmd-cli notes create`
271341

@@ -382,7 +452,7 @@ EXAMPLES
382452
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
383453
```
384454

385-
_See code: [src/commands/team-notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/team-notes/index.ts)_
455+
_See code: [src/commands/team-notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/team-notes/index.ts)_
386456

387457
## `hackmd-cli team-notes create`
388458

@@ -499,7 +569,7 @@ EXAMPLES
499569
f76308a6-d77a-41f6-86d0-8ada426a6fb4 CLI test team CLI-test 82f7f3d9-4079-4c78-8a00-14094272ece9
500570
```
501571

502-
_See code: [src/commands/teams.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/teams.ts)_
572+
_See code: [src/commands/teams.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/teams.ts)_
503573

504574
## `hackmd-cli version`
505575

@@ -552,7 +622,7 @@ EXAMPLES
552622
82f7f3d9-4079-4c78-8a00-14094272ece9 Ming-Hsiu Tsai null gvfz2UB5THiKABQJQnLs6Q
553623
```
554624

555-
_See code: [src/commands/whoami.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.0/src/commands/whoami.ts)_
625+
_See code: [src/commands/whoami.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.3.1/src/commands/whoami.ts)_
556626
<!-- commandsstop -->
557627

558628
## License

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hackmd/hackmd-cli",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"author": "HackMD Team",
55
"bin": {
66
"hackmd-cli": "./bin/run"
@@ -15,6 +15,7 @@
1515
"fs-extra": "^8.1.0",
1616
"lodash.defaults": "^4.2.0",
1717
"oclif": "3.8.1",
18+
"oclif-plugin-completion": "^0.6.0",
1819
"tslib": "^2.5.0"
1920
},
2021
"devDependencies": {
@@ -63,7 +64,8 @@
6364
],
6465
"plugins": [
6566
"@oclif/plugin-help",
66-
"@oclif/plugin-version"
67+
"@oclif/plugin-version",
68+
"oclif-plugin-completion"
6769
]
6870
},
6971
"repository": "hackmdio/hackmd-cli",

yarn.lock

+11-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@
496496
supports-color "^8.1.1"
497497
tslib "^2"
498498

499-
"@oclif/command@^1.8.15":
499+
"@oclif/command@^1", "@oclif/command@^1.8.15":
500500
version "1.8.24"
501501
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.8.24.tgz#203ad9e2b2dc2336c0333f100978aada50d53007"
502502
integrity sha512-FbSChfBO2QFeC5eEeXmi8+kZvBCDzYdpEKhOMaz0sfKMerwSlKxsqWQPGWCjTHaowIUMtnMD3VZ8yfX5qE7SAQ==
@@ -520,7 +520,7 @@
520520
is-wsl "^2.1.1"
521521
tslib "^2.3.1"
522522

523-
"@oclif/config@^1.18.2":
523+
"@oclif/config@^1", "@oclif/config@^1.18.2":
524524
version "1.18.8"
525525
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.18.8.tgz#efaccbd0381f90a98fa69c9131e14c5a91fc0659"
526526
integrity sha512-FetS52+emaZQui0roFSdbBP8ddBkIezEoH2NcjLJRjqkMGdE9Z1V+jsISVqTYXk2KJ1gAI0CHDXFjJlNBYbJBg==
@@ -4074,6 +4074,15 @@ object-treeify@^1.1.33, object-treeify@^1.1.4:
40744074
resolved "https://registry.yarnpkg.com/object-treeify/-/object-treeify-1.1.33.tgz#f06fece986830a3cba78ddd32d4c11d1f76cdf40"
40754075
integrity sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==
40764076

4077+
oclif-plugin-completion@^0.6.0:
4078+
version "0.6.0"
4079+
resolved "https://registry.yarnpkg.com/oclif-plugin-completion/-/oclif-plugin-completion-0.6.0.tgz#b9828d33cce01a4577f0d4c8c23a66220705d81f"
4080+
integrity sha512-0HGaSR/E/seIhSzFxLkh0QqckuNSre4iGqSElZRUv1hVHH2YgrZ7xtQL9McwL8o1fh6HqkzykjUx0Iy2haVIUg==
4081+
dependencies:
4082+
"@oclif/command" "^1"
4083+
"@oclif/config" "^1"
4084+
tslib "^2"
4085+
40774086
40784087
version "3.8.1"
40794088
resolved "https://registry.yarnpkg.com/oclif/-/oclif-3.8.1.tgz#15be26a8ce842b690c8384b4056fcf67394caa11"

0 commit comments

Comments
 (0)