Skip to content

Commit

Permalink
feat: disable check
Browse files Browse the repository at this point in the history
  • Loading branch information
fXy-during committed Apr 2, 2020
1 parent 698c4d6 commit f8ff642
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/feflow-cli/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export default class Feflow {
} else {
await this.initClient();
await this.initPackageManager();
await this.checkCliUpdate();
await this.checkUpdate();
if (!this.args['disable-check']) {
await this.checkCliUpdate();
await this.checkUpdate();
}
await this.loadNative();
await this.loadInternalPlugins();
await loadPlugins(this);
Expand Down
4 changes: 4 additions & 0 deletions packages/feflow-cli/src/core/native/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const showHelp = (commands: Array<Object>) => {
{
name: 'help',
description: 'Print this help and exit successfully.'
},
{
name: 'disable-check',
description: 'Disable fef and all plugins update check'
}
]
}
Expand Down

0 comments on commit f8ff642

Please sign in to comment.