Skip to content

Commit c74cb45

Browse files
committed
feat: fix notes create examples
1 parent 68e4f39 commit c74cb45

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/commands/notes/create.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,20 @@ import {safeStdinRead, temporaryMD} from '../../utils'
2222
export default class CreateCommand extends HackMDCommand {
2323
static description = 'Create a note'
2424
static examples = [
25-
"notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled",
26-
"notes create --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled",
25+
`$ hackmd-cli notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled
26+
ID Title User Path Team Path
27+
────────────────────── ──────────────────────────────── ────────────────────── ────────
28+
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null `,
2729

28-
`ID Title User Path Team Path
29-
────────────────────── ──────────────────────────────── ────────────────────── ────────
30-
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null`,
30+
[
31+
'$ hackmd-cli notes create ',
32+
'--parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c ',
33+
"--content='# A new note' --readPermission=owner ",
34+
'--writePermission=owner --commentPermission=disabled\n',
35+
'ID Title User Path Team Path\n',
36+
'────────────────────── ──────────────────────────────── ────────────────────── ────────\n',
37+
'raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null ',
38+
].join(''),
3139

3240
'Or you can pipe content via Unix pipeline:',
3341
'cat README.md | hackmd-cli notes create',

0 commit comments

Comments
 (0)