Skip to content

Commit

Permalink
update flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWells committed Sep 7, 2018
1 parent 1851b8c commit 7dac3d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ const globalConfig = require('../base/global-config')

module.exports = async context => {
// Enable/disable telemetry Global flags. TODO refactor where these fire
if (context.id === '--disable-telemetry') {
if (context.id === '--telemetry-disable') {
globalConfig.set('telemetryDisabled', true)
console.log('Netlify telemetry has been disabled')
console.log('You can renable it anytime with the --enable-telemetry flag')
console.log('You can renable it anytime with the --telemetry-enable flag')
process.exit() // eslint-disable-line
}
if (context.id === '--enable-telemetry') {
if (context.id === '--telemetry-enable') {
globalConfig.set('telemetryDisabled', false)
console.log('Netlify telemetry has been enabled')
console.log('You can disable it anytime with the --disable-telemetry flag')
console.log('You can disable it anytime with the --telemetry-disable flag')
process.exit() // eslint-disable-line
}

Expand Down

0 comments on commit 7dac3d2

Please sign in to comment.