thinkncollab-cli 0.0.37 → 0.0.38

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
@@ -10,6 +10,7 @@ import projectInit from "../commands/init.js";
10
10
  import Status from "../commands/status.js";
11
11
  import pull from "../commands/pull.js";
12
12
  import whoami from "../commands/whoami.js";
13
+ import help from "../commands/help.js";
13
14
 
14
15
  const RC_FILE = path.join(os.homedir(), ".tncrc");
15
16
  const VERSION_FILE = path.join(process.cwd(), ".tncversions");
@@ -469,6 +470,10 @@ async function main() {
469
470
  case "whoami":
470
471
  await whoami();
471
472
  break;
473
+
474
+ case "help":
475
+ await help();
476
+ break;
472
477
 
473
478
  default:
474
479
  console.log("✅ TNC CLI ready!");
@@ -0,0 +1,16 @@
1
+ import chalk from "chalk";
2
+
3
+ async function help() {
4
+ console.log(chalk.red(" Command | Description "));
5
+ console.log(chalk.green(" `tnc-cli login` ")| chalk.yellow("Authenticate with ThinkNCollab"));
6
+ console.log(chalk.green("`tnc-cli logout` ")| chalk.yellow("Clear credentials "))
7
+ console.log(chalk.green("`tnc-cli whoami` ")| chalk.yellow("Show current user info"))
8
+ console.log(chalk.green("`tnc-cli push --room <id> <path>` ")| chalk.yellow("Push files/folders to a room"))
9
+ console.log(chalk.green("`tnc-cli rooms list`") | chalk.yellow("List all accessible rooms"))
10
+ console.log(chalk.green("`tnc-cli rooms info <id>` ")| chalk.yellow("Show room details"))
11
+ console.log(chalk.green("`tnc-cli --help` ")| chalk.yellow("Show help information "))
12
+ console.log(chalk.green(" `tnc-cli --version` ")| chalk.yellow("Show CLI version"))
13
+
14
+
15
+ }
16
+ export default help;
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thinkncollab-cli",
3
3
  "author": "Raman Singh",
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {