thinkncollab-cli 0.0.11 → 0.0.13

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,6 +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 projectInit from "../commands/init"
9
10
 
10
11
  const RC_FILE = path.join(os.homedir(), ".tncrc");
11
12
  const VERSION_FILE = path.join(process.cwd(), ".tncversions");
@@ -302,11 +303,16 @@ switch (args[0]) {
302
303
  push(roomId, targetPath);
303
304
  break;
304
305
  }
306
+ case "init" :{
307
+ await projectInit();
308
+ break;
309
+ }
305
310
 
306
311
  default:
307
312
  console.log("✅ TNC CLI ready!");
308
313
  console.log("Commands:");
309
314
  console.log(" tnc login");
315
+ console.log(" tnc-cli init")
310
316
  console.log(" tnc push --room <roomId> <path>");
311
317
  console.log(" tnc logout");
312
318
  }
@@ -3,6 +3,7 @@ import os from "os";
3
3
  import path from "path";
4
4
  import inquirer from "inquirer";
5
5
  import axios from "axios";
6
+ import { builtinModules } from "module";
6
7
  const CWD = process.cwd();
7
8
 
8
9
  async function projectInit() {
@@ -44,4 +45,4 @@ console.log("✅ Project initialized successfully!");
44
45
 
45
46
  }
46
47
 
47
- 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.11",
4
+ "version": "0.0.13",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {
@@ -1,7 +0,0 @@
1
- {
2
- "projectId": "68f9a4687d7da88440b2e0eb",
3
- "projectName": "my project",
4
- "currentBranch": "main",
5
- "lastCommit": null,
6
- "files": {}
7
- }
File without changes