Skip to content

Commit

Permalink
fix: Add preupdate hook (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergman authored and jdx committed Oct 8, 2018
1 parent 7369309 commit a0eb4dd
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class UpdateCommand extends Command {

cli.action.start(`${this.config.name}: Updating CLI`)
this.channel = args.channel || this.config.channel || 'stable'
await this.config.runHook('preupdate', {channel: this.channel})
const manifest = await this.fetchManifest()
let reason = await this.skipUpdate()
if (reason) cli.action.stop(reason || 'done')
Expand Down
Loading

0 comments on commit a0eb4dd

Please sign in to comment.