thinkncollab-cli 0.0.88 → 0.0.90
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 +3 -7
- package/commands/connect.js +3 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -240,10 +240,6 @@ default:
|
|
|
240
240
|
console.log(" tnc-cli create --room <roomId> Create branch for a room");
|
|
241
241
|
console.log("");
|
|
242
242
|
|
|
243
|
-
console.log("File Operations:");
|
|
244
|
-
console.log(" tnc-cli push --room <roomId> <path> Push files/folder");
|
|
245
|
-
console.log(" tnc-cli pull --room <roomId> [--version v] Pull latest or specific version");
|
|
246
|
-
console.log("");
|
|
247
243
|
|
|
248
244
|
console.log("Tasks:");
|
|
249
245
|
console.log(" tnc-cli my-tasks Show your assigned tasks");
|
|
@@ -257,9 +253,9 @@ default:
|
|
|
257
253
|
console.log(" tnc-cli invite <email> Invite member to room");
|
|
258
254
|
console.log("");
|
|
259
255
|
|
|
260
|
-
console.log("Communication:");
|
|
261
|
-
console.log(" tnc-cli send Send message to room");
|
|
262
|
-
console.log("");
|
|
256
|
+
// console.log("Communication:");
|
|
257
|
+
// console.log(" tnc-cli send Send message to room");
|
|
258
|
+
// console.log("");
|
|
263
259
|
|
|
264
260
|
console.log("Utility:");
|
|
265
261
|
console.log(" tnc-cli help Show help information");
|
package/commands/connect.js
CHANGED
|
@@ -20,7 +20,7 @@ async function connect(roomId) {
|
|
|
20
20
|
const { email, token } = JSON.parse(data);
|
|
21
21
|
|
|
22
22
|
try {
|
|
23
|
-
const response = await axios.post(`
|
|
23
|
+
const response = await axios.post(`https://thinkncollab.com/cli/connect/${roomId}`, {
|
|
24
24
|
email: email,
|
|
25
25
|
token: token,
|
|
26
26
|
machineId: await machine.machineIdSync(),
|
|
@@ -52,8 +52,8 @@ console.log(response.data);
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
console.log("✅ Connected to project:", response.data.project.name);
|
|
56
|
+
console.log("Members connected:", response.data.project.membersConnected);
|
|
57
57
|
|
|
58
58
|
} catch (err) {
|
|
59
59
|
if (err.response) {
|