@@ -28,7 +28,7 @@ $ npm install -g @hackmd/hackmd-cli
28
28
$ hackmd-cli COMMAND
29
29
running command...
30
30
$ 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
32
32
$ hackmd-cli --help [COMMAND]
33
33
USAGE
34
34
$ hackmd-cli COMMAND
@@ -97,6 +97,9 @@ All available configurations are listed in the table below.
97
97
## Commands
98
98
99
99
<!-- 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 )
100
103
* [ ` hackmd-cli export ` ] ( #hackmd-cli-export )
101
104
* [ ` hackmd-cli help [COMMANDS] ` ] ( #hackmd-cli-help-commands )
102
105
* [ ` hackmd-cli history ` ] ( #hackmd-cli-history )
@@ -114,6 +117,73 @@ All available configurations are listed in the table below.
114
117
* [ ` hackmd-cli version ` ] ( #hackmd-cli-version )
115
118
* [ ` hackmd-cli whoami ` ] ( #hackmd-cli-whoami )
116
119
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
+
117
187
## ` hackmd-cli export `
118
188
119
189
Export note content
@@ -134,7 +204,7 @@ EXAMPLES
134
204
# A note to be exported
135
205
```
136
206
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 ) _
138
208
139
209
## ` hackmd-cli help [COMMANDS] `
140
210
@@ -188,7 +258,7 @@ EXAMPLES
188
258
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
189
259
```
190
260
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 ) _
192
262
193
263
## ` hackmd-cli login `
194
264
@@ -210,7 +280,7 @@ EXAMPLES
210
280
Login successfully
211
281
```
212
282
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 ) _
214
284
215
285
## ` hackmd-cli logout `
216
286
@@ -231,7 +301,7 @@ EXAMPLES
231
301
You've logged out successfully
232
302
```
233
303
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 ) _
235
305
236
306
## ` hackmd-cli notes `
237
307
@@ -265,7 +335,7 @@ EXAMPLES
265
335
raUuSTetT5uQbqQfLnz9lA CLI test note gvfz2UB5THiKABQJQnLs6Q null
266
336
```
267
337
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 ) _
269
339
270
340
## ` hackmd-cli notes create `
271
341
@@ -382,7 +452,7 @@ EXAMPLES
382
452
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
383
453
```
384
454
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 ) _
386
456
387
457
## ` hackmd-cli team-notes create `
388
458
@@ -499,7 +569,7 @@ EXAMPLES
499
569
f76308a6-d77a-41f6-86d0-8ada426a6fb4 CLI test team CLI-test 82f7f3d9-4079-4c78-8a00-14094272ece9
500
570
```
501
571
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 ) _
503
573
504
574
## ` hackmd-cli version `
505
575
@@ -552,7 +622,7 @@ EXAMPLES
552
622
82f7f3d9-4079-4c78-8a00-14094272ece9 Ming-Hsiu Tsai null gvfz2UB5THiKABQJQnLs6Q
553
623
```
554
624
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 ) _
556
626
<!-- commandsstop -->
557
627
558
628
## License
0 commit comments