-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
998 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "oclif", | ||
"version": "0.0.0", | ||
"description": "base library for oclif CLIs", | ||
"private": true, | ||
"files": [], | ||
"oclif": { | ||
"commands": "./lib/commands", | ||
"topicSeparator": " ", | ||
"plugins": [ | ||
"@oclif/plugin-help", | ||
"@oclif/plugin-plugins" | ||
], | ||
"topics": { | ||
"foo": { | ||
"description": "foo topic description", | ||
"subtopics": { | ||
"bar": { | ||
"description": "foo bar topic description" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"globby": "^8.0.1", | ||
"ts-node": "^6.0.2" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/command/fixtures/typescript/src/commands/foo/bar/fail.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export class Command { | ||
static description = 'fail description' | ||
|
||
static run() { | ||
console.log('it fails!') | ||
throw new Error('random error') | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/command/fixtures/typescript/src/commands/foo/bar/succeed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export class Command { | ||
static description = 'succeed description' | ||
|
||
static run() { | ||
console.log('it works!') | ||
return 'returned success!' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class Command { | ||
static description = 'foo baz description' | ||
|
||
static run() { | ||
console.log('it works!') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"rootDirs": [ | ||
"./src" | ||
] | ||
}, | ||
"include": [ | ||
"./src/**/*" | ||
] | ||
} |
Oops, something went wrong.