Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix startup logic so a new user gets a fresh database #1196

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src-electron/main-process/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ async function startSelfCheck(
argv,
options = {
quitFunction: null,
cleanDb: true,
cleanDb: false,
logger: console.log,
}
) {
Expand Down Expand Up @@ -550,8 +550,10 @@ async function generateSingleFile(
{
zcl: env.builtinSilabsZclMetafile(),
template: env.builtinTemplateMetafile(),
}, null, null
)
},
null,
null
)
output = outputPattern
} else {
options.logger(`👉 using input file: ${zapFile}`)
Expand Down Expand Up @@ -803,7 +805,7 @@ async function startUpMainInstance(argv, callbacks) {
} else if (argv._.includes('selfCheck')) {
let options = {
quitFunction: quitFunction,
cleanDb: true,
cleanDb: false,
logger: console.log,
}
return startSelfCheck(argv, options)
Expand All @@ -812,7 +814,7 @@ async function startUpMainInstance(argv, callbacks) {
throw 'You need to specify at least one zap file.'
let options = {
quitFunction: quitFunction,
cleanDb: true,
cleanDb: false,
logger: console.log,
}
return startAnalyze(argv, options)
Expand All @@ -838,7 +840,7 @@ async function startUpMainInstance(argv, callbacks) {
} else if (argv._.includes('generate')) {
let options = {
quitFunction: quitFunction,
cleanDb: true,
cleanDb: false,
logger: console.log,
}
return startGeneration(argv, options).catch((err) => {
Expand Down
Loading