-
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
1 parent
994bd0a
commit e142331
Showing
6 changed files
with
29 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SINGLE_COMMAND_CLI_SYMBOL = Symbol('#SINGLE_COMMAND_CLI').toString() |
10 changes: 10 additions & 0 deletions
10
test/command/fixtures/single-cmd-cli-deprecated/package.json
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,10 @@ | ||
{ | ||
"name": "single-cmd-cli", | ||
"version": "0.0.0", | ||
"description": "Single Command CLI", | ||
"private": true, | ||
"oclif": { | ||
"default": ".", | ||
"commands": "./dist" | ||
} | ||
} |
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,9 @@ | ||
// eslint-disable-next-line node/no-unpublished-import | ||
import {Command} from '../../../../../src/index' | ||
|
||
export default class FooBar extends Command { | ||
public static description = 'Description of single command CLI.' | ||
public async run(): Promise<void> { | ||
this.log('hello world!') | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/command/fixtures/single-cmd-cli-deprecated/tsconfig.json
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 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDirs": ["./src"] | ||
}, | ||
"include": ["./src/**/*"] | ||
} |