Created
December 19, 2019 10:38
-
-
Save pc035860/6afff92b6d7e02ccaa71c1679a694050 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function gen(config) { | |
let list = []; | |
for(let [serviceName, serviceObject] of Object.entries(config)) { | |
for (let [key, value] of Object.entries(serviceObject)) { | |
// console.log(`${name}.${key} = ${value}`) | |
list.push(`${serviceName}.${key}="${value}"`); | |
} | |
} | |
return `firebase functions:config:set ${list.join(" ")}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment