This commit is contained in:
Arwid Thornström
2022-01-19 09:17:55 +01:00
parent 7f934532e9
commit 19b15a585c
8 changed files with 27 additions and 49 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ module.exports = {
// }
// }
system.run('touch ~/.pwcli_settings');
await system.run('touch ~/.pwcli_settings');
print.info(`Created configuration file ${chalk.yellow(`~/.pwcli_settings`)}`);
const config = {
gh_token: '',
@@ -120,7 +120,7 @@ module.exports = {
if (await (new Confirm({
message: `Ok to save the these settings to ${chalk.yellow(`~/.pwcli_settings`)}?`
})).run()) {
system.run(`echo '${JSON.stringify(config)}' > ~/.pwcli_settings`);
await system.run(`echo '${JSON.stringify(config)}' > ~/.pwcli_settings`);
} else {
print.info('Ok then.');
if (toolbox.fromMenu()) await toolbox.menu.showMenu();