Fixing a minor issue with plugin name not being passed through in CLI function.
This commit is contained in:
parent
589d1442da
commit
d67dcd78a6
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ function checkInPlugin() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function askAboutTopLevel() {
|
async function askAboutTopLevel(name) {
|
||||||
const files = fs.readdirSync(process.cwd())
|
const files = fs.readdirSync(process.cwd())
|
||||||
// we are in an empty git repo, don't ask
|
// we are in an empty git repo, don't ask
|
||||||
if (files.length === 1 && files[0] === ".git") {
|
if (files.length === 1 && files[0] === ".git") {
|
||||||
|
@ -63,7 +63,7 @@ async function init(opts) {
|
||||||
`An amazing Budibase ${type}!`
|
`An amazing Budibase ${type}!`
|
||||||
)
|
)
|
||||||
const version = await questions.string("Version", "1.0.0")
|
const version = await questions.string("Version", "1.0.0")
|
||||||
const topLevel = await askAboutTopLevel()
|
const topLevel = await askAboutTopLevel(name)
|
||||||
// get the skeleton
|
// get the skeleton
|
||||||
console.log(info("Retrieving project..."))
|
console.log(info("Retrieving project..."))
|
||||||
await getSkeleton(type, name)
|
await getSkeleton(type, name)
|
||||||
|
|
Loading…
Reference in a new issue