@kradle/cli 0.0.10 → 0.0.11

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.
@@ -44,17 +44,17 @@ export default class Init extends Command {
44
44
  projectName = flags.name;
45
45
  }
46
46
  else {
47
- let initial;
48
47
  if (useCurrentDir) {
49
- initial = path.basename(cwd);
48
+ projectName = path.basename(cwd);
49
+ }
50
+ else {
51
+ const { name } = await enquirer.prompt({
52
+ type: "input",
53
+ name: "name",
54
+ message: "What should the directory be called?",
55
+ });
56
+ projectName = name;
50
57
  }
51
- const { name } = await enquirer.prompt({
52
- type: "input",
53
- name: "name",
54
- message: "What should the directory be called?",
55
- initial: initial,
56
- });
57
- projectName = name;
58
58
  }
59
59
  // let useDev = flags.dev;
60
60
  // if (!useDev) {
@@ -401,5 +401,5 @@
401
401
  ]
402
402
  }
403
403
  },
404
- "version": "0.0.10"
404
+ "version": "0.0.11"
405
405
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kradle/cli",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Kradle's CLI. Manage challenges, evaluations, agents and more!",
5
5
  "keywords": [
6
6
  "cli"