File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 69
69
"repository" : " hackmdio/hackmd-cli" ,
70
70
"scripts" : {
71
71
"postpack" : " rm -f oclif.manifest.json" ,
72
- "posttest" : " tslint -p test -t stylish --fix " ,
72
+ "posttest" : " tslint -p test -t stylish" ,
73
73
"prepack" : " rm -rf lib && tsc -b && oclif-dev manifest" ,
74
74
"test" : " nyc --extension .ts mocha --forbid-only \" test/**/*.test.ts\" " ,
75
75
"version" : " oclif-dev readme && git add README.md"
Original file line number Diff line number Diff line change 1
- import { CommentPermissionType , CreateNoteOptions , NotePermissionRole } from '@hackmd/api/dist/type'
1
+ import { CommentPermissionType , CreateNoteOptions , NotePermissionRole } from '@hackmd/api/dist/type'
2
2
import { CliUx , Command , Flags } from '@oclif/core'
3
3
4
4
import { APIClient } from '../../api'
@@ -8,14 +8,14 @@ export default class Create extends Command {
8
8
static description = 'Create a note'
9
9
10
10
static examples = [
11
- ` notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled` ,
11
+ " notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled" ,
12
12
13
- `ID Title User Path Team Path
13
+ `ID Title User Path Team Path
14
14
────────────────────── ──────────────────────────────── ────────────────────── ────────
15
15
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null` ,
16
16
17
- ` Or you can pipe content via Unix pipeline:` ,
18
- ` cat README.md | hackmd-cli notes create`
17
+ ' Or you can pipe content via Unix pipeline:' ,
18
+ ' cat README.md | hackmd-cli notes create'
19
19
]
20
20
21
21
static flags = {
Original file line number Diff line number Diff line change 1
- import { CommentPermissionType , CreateNoteOptions , NotePermissionRole } from '@hackmd/api/dist/type'
1
+ import { CommentPermissionType , CreateNoteOptions , NotePermissionRole } from '@hackmd/api/dist/type'
2
2
import { CliUx , Command , Flags } from '@oclif/core'
3
3
4
4
import { APIClient } from '../../api'
@@ -13,8 +13,8 @@ ID Title User Path T
13
13
────────────────────── ──────────────────────────────── ────────────────────── ────────
14
14
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null ` ,
15
15
16
- ` Or you can pipe content via Unix pipeline:` ,
17
- ` cat README.md | hackmd-cli notes create --teamPath=CLI-test`
16
+ ' Or you can pipe content via Unix pipeline:' ,
17
+ ' cat README.md | hackmd-cli notes create --teamPath=CLI-test'
18
18
]
19
19
20
20
static flags = {
You can’t perform that action at this time.
0 commit comments