-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uses yarn.lock file of plugin if it exists
- Loading branch information
Showing
6 changed files
with
64 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import {Command} from '@oclif/command' | ||
import {Command, flags} from '@oclif/command' | ||
|
||
import Plugins from '../../plugins' | ||
|
||
export default class PluginsUpdate extends Command { | ||
static topic = 'plugins' | ||
static command = 'update' | ||
static description = 'update installed plugins' | ||
static flags = { | ||
help: flags.help({char: 'h'}), | ||
verbose: flags.boolean({char: 'v'}), | ||
} | ||
|
||
plugins = new Plugins(this.config) | ||
|
||
async run() { | ||
this.parse(PluginsUpdate) | ||
const {flags} = this.parse(PluginsUpdate) | ||
this.plugins.verbose = flags.verbose | ||
await this.plugins.update() | ||
} | ||
} |
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