@adithya-naik/cmd-tracker 1.0.0 → 1.0.3

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.
@@ -10,15 +10,15 @@
10
10
  * Write once, use everywhere ✅
11
11
  */
12
12
 
13
- const fs = require("fs");
14
- const path = require("path");
13
+ const fs = require('fs');
14
+ const path = require('path');
15
15
 
16
16
  /*
17
17
  * Path to .tracker folder
18
18
  * process.cwd() → user's current project folder
19
19
  */
20
- const TRACKER_DIR = path.join(process.cwd(), ".tracker");
21
- const COMMANDS_FILE = path.join(TRACKER_DIR, "commands.json");
20
+ const TRACKER_DIR = path.join(process.cwd(), '.tracker');
21
+ const COMMANDS_FILE = path.join(TRACKER_DIR, 'commands.json');
22
22
 
23
23
  /*
24
24
  * isInitialized() — checks if tracker init was run
@@ -40,8 +40,8 @@ function isInitialized() {
40
40
  * telling them exactly what to do next
41
41
  */
42
42
  function showInitError() {
43
- console.log("\n❌ cmd-tracker is not initialized in this project!");
44
- console.log("💡 Run this first: tracker init\n");
43
+ console.log('\n❌ cmd-tracker is not initialized in this project!');
44
+ console.log('💡 Run this first: tracker init\n');
45
45
  }
46
46
 
47
47
  /*
@@ -52,8 +52,24 @@ function showInitError() {
52
52
  */
53
53
  function isValidCategory(category) {
54
54
  const validCategories = [
55
- "git", "npm", "docker", "linux",
56
- "node", "angular", "python", "others"
55
+ 'git',
56
+ 'npm',
57
+ 'docker',
58
+ 'linux',
59
+ 'node',
60
+ 'angular',
61
+ 'python',
62
+ 'go',
63
+ 'java',
64
+ 'rust',
65
+ 'dotnet',
66
+ 'kubernetes',
67
+ 'database',
68
+ 'cloud',
69
+ 'packagemanagers',
70
+ 'testing',
71
+ 'ai',
72
+ 'others'
57
73
  ];
58
74
  return validCategories.includes(category.toLowerCase());
59
75
  }
@@ -65,7 +81,7 @@ function isValidCategory(category) {
65
81
  */
66
82
  function showCategoryError(category) {
67
83
  console.log(`\n❌ Unknown category: "${category}"`);
68
- console.log("📋 Valid categories: git, npm, docker, linux, node, angular, python, others\n");
84
+ console.log('📋 Valid categories: git, npm, docker, linux, node, angular, python, go, java, rust, dotnet, kubernetes, database, cloud, packageManagers, testing, ai, others\n');
69
85
  }
70
86
 
71
87
  /*
@@ -91,4 +107,4 @@ module.exports = {
91
107
  isValidCategory,
92
108
  showCategoryError,
93
109
  isValidQuery
94
- };
110
+ };