Skip to content

Commit

Permalink
feat: add cmd command to feflow context
Browse files Browse the repository at this point in the history
  • Loading branch information
cpselvis committed May 29, 2020
1 parent 9da910a commit a7ddf59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/feflow-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@feflow/cli",
"version": "0.20.0",
"version": "0.20.1",
"description": "A front-end flow tool.",
"main": "./lib/index.js",
"directories": {
Expand Down
2 changes: 2 additions & 0 deletions packages/feflow-cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export default function entry() {
cmd = 'help';
}

feflow.cmd = cmd;

feflow.hook.emit(HOOK_TYPE_BEFORE);

feflow.hook.on(EVENT_COMMAND_BEGIN, () => {
Expand Down

0 comments on commit a7ddf59

Please sign in to comment.