thinkncollab-cli 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -6,7 +6,7 @@ import os from "os";
6
6
  import path from "path";
7
7
  import crypto from "crypto";
8
8
  import FormData from "form-data";
9
- import init from "../commands/init"
9
+ import projectInit from "../commands/init"
10
10
 
11
11
  const RC_FILE = path.join(os.homedir(), ".tncrc");
12
12
  const VERSION_FILE = path.join(process.cwd(), ".tncversions");
@@ -304,7 +304,7 @@ switch (args[0]) {
304
304
  break;
305
305
  }
306
306
  case "init" :{
307
- init();
307
+ await projectInit();
308
308
  break;
309
309
  }
310
310
 
@@ -312,6 +312,7 @@ switch (args[0]) {
312
312
  console.log("✅ TNC CLI ready!");
313
313
  console.log("Commands:");
314
314
  console.log(" tnc login");
315
+ console.log(" tnc-cli init")
315
316
  console.log(" tnc push --room <roomId> <path>");
316
317
  console.log(" tnc logout");
317
318
  }
package/commands/init.js CHANGED
@@ -45,4 +45,4 @@ console.log("✅ Project initialized successfully!");
45
45
 
46
46
  }
47
47
 
48
- module.exports = projectInit();
48
+ module.exports = projectInit;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thinkncollab-cli",
3
3
  "author": "Raman Singh",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {