@hypermode/modus-cli
Advanced tools
Comparing version 0.13.4 to 0.13.5
@@ -25,2 +25,3 @@ /* | ||
import { getGoVersion, getTinyGoVersion } from "../../util/systemVersions.js"; | ||
import { generateAppName } from "../../util/appname.js"; | ||
const MODUS_DEFAULT_TEMPLATE_NAME = "default"; | ||
@@ -95,3 +96,3 @@ export default class NewCommand extends Command { | ||
} | ||
const defaultAppName = getDefaultAppNameBySdk(sdk); | ||
const defaultAppName = generateAppName(); | ||
let name = flags.name || | ||
@@ -281,15 +282,2 @@ (await inquirer.input({ | ||
} | ||
const MODUS_NEW_DEFAULT_APP_NAME = "modus-app"; | ||
const MODUS_NEW_GO_APP_NAME = "modus-go-app"; | ||
const MODUS_NEW_AS_APP_NAME = "modus-as-app"; | ||
function getDefaultAppNameBySdk(sdk) { | ||
switch (sdk) { | ||
case SDK.AssemblyScript: | ||
return MODUS_NEW_AS_APP_NAME; | ||
case SDK.Go: | ||
return MODUS_NEW_GO_APP_NAME; | ||
default: | ||
return MODUS_NEW_DEFAULT_APP_NAME; | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -612,3 +612,3 @@ { | ||
}, | ||
"version": "0.13.4" | ||
"version": "0.13.5" | ||
} |
{ | ||
"name": "@hypermode/modus-cli", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"description": "The Modus CLI", | ||
@@ -5,0 +5,0 @@ "author": "Hypermode Inc.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235200
84
3446