new-express-project fail before taking input

This commit is contained in:
2025-02-02 17:52:46 -06:00
parent 7e1e64e5b3
commit 936526f83d

View File

@@ -234,9 +234,9 @@ class Main {
}
static function newExpressProject(args:Array<String>) {
var kissExpressLibPath = libPath("kiss-express");
var title = promptFor("title (lower-case!)").toLowerCase();
var pkg = title.replace("-", "_");
var kissExpressLibPath = libPath("kiss-express");
var workingDir = Sys.getCwd();
var projectDir = Path.join([workingDir, title]);
FileSystem.createDirectory(projectDir);