Skip to content

Commit

Permalink
Added link to rm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth-hk committed Apr 6, 2020
1 parent 077b461 commit 71d85dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function rm(path, FileName) {
fs.unlink(new_path, (err) => {
if (err) {
console.log("File does not exist with this name");
console.log('For `rm` docs visit https://synix-docs.netlify.com/ccc/commands.html#rm')
} else {
console.log(`${file} has been deleted`);
}
Expand All @@ -25,6 +26,7 @@ function rm(path, FileName) {
fs.rmdir(new_path, { recursive: true }, (err) => {
if (err) {
console.log("Folder does not exist with this name");
console.log('For `rm` docs visit https://synix-docs.netlify.com/ccc/commands.html#rm')
} else {
console.log(`${FileName} has been deleted`);
}
Expand All @@ -36,6 +38,7 @@ function rm(path, FileName) {
fs.unlink(new_path, (err) => {
if (err) {
console.log("File does not exist with this name");
console.log('For `rm` docs visit https://synix-docs.netlify.com/ccc/commands.html#rm')
} else {
console.log(`${FileName} has been deleted`);
}
Expand Down

0 comments on commit 71d85dc

Please sign in to comment.