Introduce FLIPPER_ENABLE_ALL_GKS dev option
Summary: Was tired off figuring out GK's to be able to debug a plugin, so added a flag that allows me to start Flipper with all plugins enabled :) Reviewed By: passy Differential Revision: D25301773 fbshipit-source-id: 668b92c4ddbbeb3f4b056035de394800bbfa5377
This commit is contained in:
committed by
Facebook GitHub Bot
parent
84c6e05b8a
commit
42ef4d59e6
@@ -66,6 +66,11 @@ const argv = yargs
|
||||
default: 3000,
|
||||
type: 'number',
|
||||
},
|
||||
'enable-all-gks': {
|
||||
describe:
|
||||
'[FB-internal only] Will yield `true` on any GK. Disabled by default. Setting env var FLIPPER_ENABLE_ALL_GKS is equivalent',
|
||||
type: 'boolean',
|
||||
},
|
||||
})
|
||||
.version('DEV')
|
||||
.help()
|
||||
@@ -101,6 +106,11 @@ if (argv['plugin-auto-update'] === true) {
|
||||
process.env.FLIPPER_DISABLE_PLUGIN_AUTO_UPDATE = 'true';
|
||||
}
|
||||
|
||||
// Force participating in all GKs. Mostly intersting for Flipper team members.
|
||||
if (argv['enable-all-gks'] === true) {
|
||||
process.env.FLIPPER_ENABLE_ALL_GKS = 'true';
|
||||
}
|
||||
|
||||
if (argv['enabled-plugins'] !== undefined) {
|
||||
process.env.FLIPPER_ENABLED_PLUGINS = argv['enabled-plugins'].join(',');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user