Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: added load function
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 19, 2018
1 parent 4784a3a commit 1aeeb61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/dxcli/command/issues",
"dependencies": {
"@dxcli/config": "^0.1.9",
"@dxcli/config": "^0.1.11",
"@dxcli/parser": "^0.0.2",
"@dxcli/screen": "^0.0.0",
"cli-ux": "^3.0.0-alpha.4",
Expand Down
2 changes: 2 additions & 0 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export default abstract class Command {
*/
abstract async run(): Promise<void>

load() { return this }

protected async _run(argv: string[], opts: Options) {
try {
await this.init(argv, opts)
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
dependencies:
find-up "^2.1.0"

"@dxcli/config@^0.1.9":
version "0.1.9"
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.9.tgz#f9d033fec9d0236435b60da1d7457c78f48c631e"
"@dxcli/config@^0.1.11":
version "0.1.11"
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.11.tgz#e7ebab5b69ae38f0f43297e41f7079a73cfb1d4a"
dependencies:
debug "^3.1.0"
fs-extra "^5.0.0"
Expand Down

0 comments on commit 1aeeb61

Please sign in to comment.