This commit is contained in:
diced 2021-01-30 08:18:59 -08:00
parent 1529eb3afd
commit 701e5ae2d0
No known key found for this signature in database
GPG key ID: 9F93C5E963C42895

View file

@ -48,14 +48,14 @@ const base = {
{ {
type: 'list', type: 'list',
name: 'type', name: 'type',
message: 'What database type?', message: 'What database type? (you will have to install the drivers)',
choices: [ choices: [
{ name: 'postgres', extra: 'This is what we recomend using.' }, { name: 'postgres', extra: 'This is what we recomend using.' },
{ name: 'cockroachdb' }, { name: 'cockroachdb' },
{ name: 'mysql' }, { name: 'mysql' },
{ name: 'mariadb' }, { name: 'mariadb' },
{ name: 'mssql' }, { name: 'mssql' },
{ name: 'sqlite3' } { name: 'sqlite' }
] ]
}, },
{ {
@ -103,14 +103,14 @@ const base = {
name: 'theme', name: 'theme',
message: 'Theme', message: 'Theme',
choices: [ choices: [
{ name: 'Dark Theme (recomended)' }, { name: 'dark' },
{ name: 'Light Theme (warning for eyes)' } { name: 'light' }
] ]
}, },
{ {
type: 'confirm', type: 'confirm',
name: 'mfa', name: 'mfa',
message: 'Enable MFA with Authy/Google Authenticator' message: 'Enable 2 Factor Authentication with Authy/Google Authenticator'
} }
]); ]);
@ -165,6 +165,7 @@ const base = {
'Head to https://zipline.diced.wtf/docs/docker to learn how to run with docker.' 'Head to https://zipline.diced.wtf/docs/docker to learn how to run with docker.'
); );
} }
if (config.database.type !== "postgres") console.log(`please head to https://zipline.diced.wtf/docs/config/getting-started#database to see what drivers you need to install for ${config.database.type}`);
writeFileSync('Zipline.toml', stringify(config)); writeFileSync('Zipline.toml', stringify(config));
})(); })();