Skip to content

Commit 72b1795

Browse files
authored
Merge pull request #59 from hackmdio/develop
v2.0.1
2 parents d0eec90 + bf3d8f0 commit 72b1795

11 files changed

+131
-252
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12
1+
17

README.md

+35-15
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 (-v|--version|version)
31-
@hackmd/hackmd-cli/2.0.0 darwin-x64 node-v12.21.0
31+
@hackmd/hackmd-cli/2.0.1 darwin-arm64 node-v17.7.0
3232
$ hackmd-cli --help [COMMAND]
3333
USAGE
3434
$ hackmd-cli COMMAND
@@ -97,6 +97,7 @@ All available configurations are listed in the table below.
9797
## Commands
9898

9999
<!-- commands -->
100+
* [`hackmd-cli export`](#hackmd-cli-export)
100101
* [`hackmd-cli help [COMMAND]`](#hackmd-cli-help-command)
101102
* [`hackmd-cli history`](#hackmd-cli-history)
102103
* [`hackmd-cli login`](#hackmd-cli-login)
@@ -113,6 +114,25 @@ All available configurations are listed in the table below.
113114
* [`hackmd-cli version`](#hackmd-cli-version)
114115
* [`hackmd-cli whoami`](#hackmd-cli-whoami)
115116

117+
## `hackmd-cli export`
118+
119+
Export note content
120+
121+
```
122+
USAGE
123+
$ hackmd-cli export
124+
125+
OPTIONS
126+
-h, --help Show CLI help.
127+
--noteId=noteId HackMD note id
128+
129+
EXAMPLE
130+
$ hackmd-cli export --noteId=kNFWV5E-Qz-QP7u6XnNvyQ
131+
# A note to be exported
132+
```
133+
134+
_See code: [src/commands/export.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/export.ts)_
135+
116136
## `hackmd-cli help [COMMAND]`
117137

118138
display help for hackmd-cli
@@ -157,7 +177,7 @@ EXAMPLE
157177
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
158178
```
159179

160-
_See code: [src/commands/history.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/history.ts)_
180+
_See code: [src/commands/history.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/history.ts)_
161181

162182
## `hackmd-cli login`
163183

@@ -178,7 +198,7 @@ EXAMPLE
178198
Login successfully
179199
```
180200

181-
_See code: [src/commands/login.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/login.ts)_
201+
_See code: [src/commands/login.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/login.ts)_
182202

183203
## `hackmd-cli logout`
184204

@@ -197,7 +217,7 @@ EXAMPLE
197217
You've logged out successfully
198218
```
199219

200-
_See code: [src/commands/logout.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/logout.ts)_
220+
_See code: [src/commands/logout.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/logout.ts)_
201221

202222
## `hackmd-cli notes`
203223

@@ -226,7 +246,7 @@ EXAMPLE
226246
raUuSTetT5uQbqQfLnz9lA CLI test note gvfz2UB5THiKABQJQnLs6Q null
227247
```
228248

229-
_See code: [src/commands/notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/notes/index.ts)_
249+
_See code: [src/commands/notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/notes/index.ts)_
230250

231251
## `hackmd-cli notes:create`
232252

@@ -261,7 +281,7 @@ EXAMPLES
261281
cat README.md | hackmd-cli notes create
262282
```
263283

264-
_See code: [src/commands/notes/create.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/notes/create.ts)_
284+
_See code: [src/commands/notes/create.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/notes/create.ts)_
265285

266286
## `hackmd-cli notes:delete`
267287

@@ -279,7 +299,7 @@ EXAMPLE
279299
$ hackmd-cli notes delete --noteId=WNkLM6gkS0Cg2cQ8rv7bYA
280300
```
281301

282-
_See code: [src/commands/notes/delete.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/notes/delete.ts)_
302+
_See code: [src/commands/notes/delete.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/notes/delete.ts)_
283303

284304
## `hackmd-cli notes:update`
285305

@@ -295,10 +315,10 @@ OPTIONS
295315
--noteId=noteId HackMD note id
296316
297317
EXAMPLE
298-
$ hackmd-cli notes update --teamPath=CLI-test --noteId=WNkLM6gkS0Cg2cQ8rv7bYA --content='# A new title'
318+
$ hackmd-cli notes update --noteId=WNkLM6gkS0Cg2cQ8rv7bYA --content='# A new title'
299319
```
300320

301-
_See code: [src/commands/notes/update.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/notes/update.ts)_
321+
_See code: [src/commands/notes/update.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/notes/update.ts)_
302322

303323
## `hackmd-cli team-notes`
304324

@@ -328,7 +348,7 @@ EXAMPLE
328348
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
329349
```
330350

331-
_See code: [src/commands/team-notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/team-notes/index.ts)_
351+
_See code: [src/commands/team-notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/team-notes/index.ts)_
332352

333353
## `hackmd-cli team-notes:create`
334354

@@ -365,7 +385,7 @@ EXAMPLES
365385
cat README.md | hackmd-cli notes create --teamPath=CLI-test
366386
```
367387

368-
_See code: [src/commands/team-notes/create.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/team-notes/create.ts)_
388+
_See code: [src/commands/team-notes/create.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/team-notes/create.ts)_
369389

370390
## `hackmd-cli team-notes:delete`
371391

@@ -384,7 +404,7 @@ EXAMPLE
384404
$ hackmd-cli team-notes delete --teamPath=CLI-test --noteId=WNkLM6gkS0Cg2cQ8rv7bYA
385405
```
386406

387-
_See code: [src/commands/team-notes/delete.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/team-notes/delete.ts)_
407+
_See code: [src/commands/team-notes/delete.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/team-notes/delete.ts)_
388408

389409
## `hackmd-cli team-notes:update`
390410

@@ -404,7 +424,7 @@ EXAMPLE
404424
$ hackmd-cli team-notes update --teamPath=CLI-test --noteId=WNkLM6gkS0Cg2cQ8rv7bYA --content='# A new title'
405425
```
406426

407-
_See code: [src/commands/team-notes/update.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/team-notes/update.ts)_
427+
_See code: [src/commands/team-notes/update.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/team-notes/update.ts)_
408428

409429
## `hackmd-cli teams`
410430

@@ -432,7 +452,7 @@ EXAMPLE
432452
f76308a6-d77a-41f6-86d0-8ada426a6fb4 CLI test team CLI-test 82f7f3d9-4079-4c78-8a00-14094272ece9
433453
```
434454

435-
_See code: [src/commands/teams.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/teams.ts)_
455+
_See code: [src/commands/teams.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/teams.ts)_
436456

437457
## `hackmd-cli version`
438458

@@ -469,7 +489,7 @@ EXAMPLE
469489
82f7f3d9-4079-4c78-8a00-14094272ece9 Ming-Hsiu Tsai null gvfz2UB5THiKABQJQnLs6Q
470490
```
471491

472-
_See code: [src/commands/whoami.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.0/src/commands/whoami.ts)_
492+
_See code: [src/commands/whoami.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/whoami.ts)_
473493
<!-- commandsstop -->
474494

475495
## License

0 commit comments

Comments
 (0)