Skip to content

Commit

Permalink
Added link to init docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth-hk committed Apr 6, 2020
1 parent 28af973 commit de5f128
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/init/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ function init(editorAlias) {
} else {
console.log(`${editorAlias} is not supported`)
console.log("SYNIX is not initialized")
console.log('For text-editors list visit https://synix-docs.netlify.com/ccc/commands.html#text-editors-supported')
process.exit(0);
}

// Update JSON
fs.writeFileSync(filePath, JSON.stringify(sxconfig, null, 1), err => {
if (err) {
console.log("Error writing file:", err);
console.log('Try installing synix with sudo')
return;
}
});
Expand All @@ -52,6 +54,7 @@ function init(editorAlias) {
console.log("Initializing SYNIX...\n");
console.log(sxconfig);
console.log("\nDone.");
console.log('For documentation visit https://synix-docs.netlify.com/')
}

module.exports = init;

0 comments on commit de5f128

Please sign in to comment.