2021-02-26 12:46:48 +01:00
|
|
|
const Command = require("../structures/Command")
|
|
|
|
const { CommandWords } = require("../constants")
|
2021-02-24 18:32:45 +01:00
|
|
|
|
2021-02-26 12:46:48 +01:00
|
|
|
async function init() {
|
|
|
|
console.log("INIT")
|
|
|
|
}
|
|
|
|
|
|
|
|
async function start() {
|
|
|
|
console.log("START")
|
|
|
|
}
|
|
|
|
|
|
|
|
async function stop() {
|
|
|
|
console.log("STOP")
|
|
|
|
}
|
|
|
|
|
|
|
|
async function update() {
|
|
|
|
console.log("UPDATE")
|
|
|
|
}
|
|
|
|
|
|
|
|
const command = new Command(`${CommandWords.HOSTING}`)
|
2021-02-25 15:42:50 +01:00
|
|
|
.addHelp("Controls self hosting on the Budibase platform.")
|
2021-02-26 12:46:48 +01:00
|
|
|
.addSubOption(
|
|
|
|
"--init",
|
|
|
|
"Configure a self hosted platform in current directory.",
|
|
|
|
init
|
|
|
|
)
|
|
|
|
.addSubOption(
|
|
|
|
"--start",
|
|
|
|
"Start the configured platform in current directory.",
|
|
|
|
start
|
|
|
|
)
|
|
|
|
.addSubOption(
|
|
|
|
"--stop",
|
|
|
|
"Stop the configured platform in the current directory.",
|
|
|
|
stop
|
|
|
|
)
|
|
|
|
.addSubOption(
|
|
|
|
"--update",
|
|
|
|
"Updates the Budibase images to the latest version.",
|
|
|
|
update
|
|
|
|
)
|
2021-02-25 15:42:50 +01:00
|
|
|
|
2021-02-26 12:46:48 +01:00
|
|
|
exports.command = command
|