Skip to content

Commit 2128656

Browse files
committed
Merge branch 'master' into develop
2 parents 170dab5 + 4559729 commit 2128656

File tree

2 files changed

+80
-10
lines changed

2 files changed

+80
-10
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

+1-1
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"

0 commit comments

Comments
 (0)