Skip to content

Commit 8c8ff81

Browse files
authored
Merge pull request #61 from hackmdio/develop
Release 2.0.2
2 parents 72b1795 + 5e6d702 commit 8c8ff81

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

README.md

+15-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.1 darwin-arm64 node-v17.7.0
31+
@hackmd/hackmd-cli/2.0.2 darwin-arm64 node-v17.7.0
3232
$ hackmd-cli --help [COMMAND]
3333
USAGE
3434
$ hackmd-cli COMMAND
@@ -131,7 +131,7 @@ EXAMPLE
131131
# A note to be exported
132132
```
133133

134-
_See code: [src/commands/export.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.1/src/commands/export.ts)_
134+
_See code: [src/commands/export.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.2/src/commands/export.ts)_
135135

136136
## `hackmd-cli help [COMMAND]`
137137

@@ -177,7 +177,7 @@ EXAMPLE
177177
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
178178
```
179179

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

182182
## `hackmd-cli login`
183183

@@ -198,7 +198,7 @@ EXAMPLE
198198
Login successfully
199199
```
200200

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

203203
## `hackmd-cli logout`
204204

@@ -217,7 +217,7 @@ EXAMPLE
217217
You've logged out successfully
218218
```
219219

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

222222
## `hackmd-cli notes`
223223

@@ -246,7 +246,7 @@ EXAMPLE
246246
raUuSTetT5uQbqQfLnz9lA CLI test note gvfz2UB5THiKABQJQnLs6Q null
247247
```
248248

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

251251
## `hackmd-cli notes:create`
252252

@@ -281,7 +281,7 @@ EXAMPLES
281281
cat README.md | hackmd-cli notes create
282282
```
283283

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

286286
## `hackmd-cli notes:delete`
287287

@@ -299,7 +299,7 @@ EXAMPLE
299299
$ hackmd-cli notes delete --noteId=WNkLM6gkS0Cg2cQ8rv7bYA
300300
```
301301

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

304304
## `hackmd-cli notes:update`
305305

@@ -318,7 +318,7 @@ EXAMPLE
318318
$ hackmd-cli notes update --noteId=WNkLM6gkS0Cg2cQ8rv7bYA --content='# A new title'
319319
```
320320

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

323323
## `hackmd-cli team-notes`
324324

@@ -348,7 +348,7 @@ EXAMPLE
348348
BnC6gN0_TfStV2KKmPPXeg Welcome to your team's workspace null CLI-test
349349
```
350350

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)_
351+
_See code: [src/commands/team-notes/index.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.2/src/commands/team-notes/index.ts)_
352352

353353
## `hackmd-cli team-notes:create`
354354

@@ -385,7 +385,7 @@ EXAMPLES
385385
cat README.md | hackmd-cli notes create --teamPath=CLI-test
386386
```
387387

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)_
388+
_See code: [src/commands/team-notes/create.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.2/src/commands/team-notes/create.ts)_
389389

390390
## `hackmd-cli team-notes:delete`
391391

@@ -404,7 +404,7 @@ EXAMPLE
404404
$ hackmd-cli team-notes delete --teamPath=CLI-test --noteId=WNkLM6gkS0Cg2cQ8rv7bYA
405405
```
406406

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)_
407+
_See code: [src/commands/team-notes/delete.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.2/src/commands/team-notes/delete.ts)_
408408

409409
## `hackmd-cli team-notes:update`
410410

@@ -424,7 +424,7 @@ EXAMPLE
424424
$ hackmd-cli team-notes update --teamPath=CLI-test --noteId=WNkLM6gkS0Cg2cQ8rv7bYA --content='# A new title'
425425
```
426426

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)_
427+
_See code: [src/commands/team-notes/update.ts](https://github.com/hackmdio/hackmd-cli/blob/v2.0.2/src/commands/team-notes/update.ts)_
428428

429429
## `hackmd-cli teams`
430430

@@ -452,7 +452,7 @@ EXAMPLE
452452
f76308a6-d77a-41f6-86d0-8ada426a6fb4 CLI test team CLI-test 82f7f3d9-4079-4c78-8a00-14094272ece9
453453
```
454454

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

457457
## `hackmd-cli version`
458458

@@ -489,7 +489,7 @@ EXAMPLE
489489
82f7f3d9-4079-4c78-8a00-14094272ece9 Ming-Hsiu Tsai null gvfz2UB5THiKABQJQnLs6Q
490490
```
491491

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

495495
## License

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.0.1",
3+
"version": "2.0.2",
44
"author": "HackMD Team",
55
"bin": {
66
"hackmd-cli": "./bin/run"

src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export function setAccessTokenConfig(token: string) {
2626

2727
export function safeStdinRead() {
2828
let result
29+
const STDIN_FD = 0
2930
try {
30-
result = fs.readFileSync(process.stdin.fd).toString()
31+
result = fs.readFileSync(STDIN_FD).toString()
3132
} catch {}
32-
3333
return result
3434
}

0 commit comments

Comments
 (0)