File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 "repository" : " hackmdio/hackmd-cli" ,
7070 "scripts" : {
7171 "postpack" : " rm -f oclif.manifest.json" ,
72- "posttest" : " tslint -p test -t stylish --fix " ,
72+ "posttest" : " tslint -p test -t stylish" ,
7373 "prepack" : " rm -rf lib && tsc -b && oclif-dev manifest" ,
7474 "test" : " nyc --extension .ts mocha --forbid-only \" test/**/*.test.ts\" " ,
7575 "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'
22import { CliUx , Command , Flags } from '@oclif/core'
33
44import { APIClient } from '../../api'
@@ -8,14 +8,14 @@ export default class Create extends Command {
88 static description = 'Create a note'
99
1010 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" ,
1212
13- `ID Title User Path Team Path
13+ `ID Title User Path Team Path
1414────────────────────── ──────────────────────────────── ────────────────────── ────────
1515raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null` ,
1616
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'
1919 ]
2020
2121 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'
22import { CliUx , Command , Flags } from '@oclif/core'
33
44import { APIClient } from '../../api'
@@ -13,8 +13,8 @@ ID Title User Path T
1313────────────────────── ──────────────────────────────── ────────────────────── ────────
1414raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null ` ,
1515
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'
1818 ]
1919
2020 static flags = {
You can’t perform that action at this time.
0 commit comments