From 506e1de49e95ad9c115a80199a754e3880f022f3 Mon Sep 17 00:00:00 2001 From: Mohammad Fares Date: Sun, 14 Oct 2018 22:02:51 +0300 Subject: [PATCH] Call the command if the global config directory is not created --- commands/share.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/share.js b/commands/share.js index be1d68c..4d6226f 100644 --- a/commands/share.js +++ b/commands/share.js @@ -44,7 +44,10 @@ function isSet(input) { */ function command(argv) { - console.log('This command is not implemented yet. It will be available in the next versions'); + // No global config + if (!di.utility.isGlobalDirectoryCreated()) { + require('./init.js').handler(); + } }