Skip to content

Commit 68e4f39

Browse files
committed
fix: update folder commands to use hex color codes in examples
1 parent 2ae3c47 commit 68e4f39

6 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/commands/folders/create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515
export default class Create extends HackMDCommand {
1616
static description = 'Create a folder'
1717
static examples = [
18-
`$ hackmd-cli folders create --name='docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=blue
19-
ID Name Parent Folder ID Color Description Icon
20-
──────────────────────────────────── ──── ──────────────────────────────────── ───── ─────────── ─────
21-
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c blue Docs 1F600`,
18+
`$ hackmd-cli folders create --name='docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=#4F46E5
19+
ID Name Parent Folder ID Color Description Icon
20+
──────────────────────────────────── ──── ──────────────────────────────────── ─────── ─────────── ─────
21+
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c #4F46E5 Docs 1F600`,
2222
]
2323
static flags = {
2424
color: folderColor,

src/commands/folders/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export default class IndexCommand extends HackMDCommand {
77
static description = 'HackMD folders commands'
88
static examples = [
99
`$ hackmd-cli folders
10-
ID Color Description Icon Name Parent Folder ID
11-
──────────────────────────────────── ───── ───────────────────── ───── ─────────── ────────────────────────────────────
12-
91722050-bf47-4334-9e5d-87125a724c29 blue Project documentation 1F600 engineering fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c`,
10+
ID Color Description Icon Name Parent Folder ID
11+
──────────────────────────────────── ─────── ───────────────────── ───── ─────────── ────────────────────────────────────
12+
91722050-bf47-4334-9e5d-87125a724c29 #4F46E5 Project documentation 1F600 engineering fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c`,
1313
]
1414
static flags = {
1515
folderId,

src/commands/folders/update.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515
export default class Update extends HackMDCommand {
1616
static description = 'Update folder'
1717
static examples = [
18-
`$ hackmd-cli folders update --folderId=a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d --name='docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=blue
19-
ID Name Parent Folder ID Color Description Icon
20-
──────────────────────────────────── ──── ──────────────────────────────────── ───── ─────────── ─────
21-
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c blue Docs 1F600`,
18+
`$ hackmd-cli folders update --folderId=a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d --name='docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=#4F46E5
19+
ID Name Parent Folder ID Color Description Icon
20+
──────────────────────────────────── ──── ──────────────────────────────────── ─────── ─────────── ─────
21+
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c #4F46E5 Docs 1F600`,
2222
]
2323
static flags = {
2424
color: folderColor,

src/commands/team-folders/create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515
export default class Create extends HackMDCommand {
1616
static description = 'Create a team folder'
1717
static examples = [
18-
`$ hackmd-cli team-folders create --teamPath=CLI-test --name='team-docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=blue
19-
ID Name Parent Folder ID Color Description Icon
20-
──────────────────────────────────── ───────── ──────────────────────────────────── ───── ─────────── ─────
21-
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c blue Docs 1F600`,
18+
`$ hackmd-cli team-folders create --teamPath=CLI-test --name='team-docs' --parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c --description='Docs' --icon=1F600 --color=#4F46E5
19+
ID Name Parent Folder ID Color Description Icon
20+
──────────────────────────────────── ───────── ──────────────────────────────────── ─────── ─────────── ─────
21+
a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c #4F46E5 Docs 1F600`,
2222
]
2323
static flags = {
2424
color: folderColor,

src/commands/team-folders/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export default class IndexCommand extends HackMDCommand {
77
static description = 'HackMD team folders commands'
88
static examples = [
99
`$ hackmd-cli team-folders --teamPath engineering
10-
ID Color Description Icon Name Parent Folder ID
11-
──────────────────────────────────── ───── ─────────────── ───── ────────── ────────────────────────────────────
12-
91722050-bf47-4334-9e5d-87125a724c29 blue Team handbook 1F600 team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c`,
10+
ID Color Description Icon Name Parent Folder ID
11+
──────────────────────────────────── ─────── ─────────────── ───── ────────── ────────────────────────────────────
12+
91722050-bf47-4334-9e5d-87125a724c29 #4F46E5 Team handbook 1F600 team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c`,
1313
]
1414
static flags = {
1515
folderId,

src/commands/team-folders/update.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export default class Update extends HackMDCommand {
2121
'--folderId=a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d ',
2222
"--name='team-docs' ",
2323
'--parentFolderId=fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c ',
24-
"--description='Docs' --icon=1F600 --color=blue\n",
25-
'ID Name Parent Folder ID Color Description Icon\n',
26-
'──────────────────────────────────── ───────── ──────────────────────────────────── ───── ─────────── ─────\n',
27-
'a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c blue Docs 1F600',
24+
"--description='Docs' --icon=1F600 --color=#4F46E5\n",
25+
'ID Name Parent Folder ID Color Description Icon\n',
26+
'──────────────────────────────────── ───────── ──────────────────────────────────── ─────── ─────────── ─────\n',
27+
'a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d team-docs fc7a3d48-4a07-4cbf-bf4f-e65dd896e01c #4F46E5 Docs 1F600',
2828
].join(''),
2929
]
3030
static flags = {

0 commit comments

Comments
 (0)