feat: disable interactive mode for tooling by setting global state

This commit is contained in:
Erica Marigold 2025-01-23 13:30:57 +05:30
parent 3e3a86de18
commit 88de611743
Signed by: DevComp
GPG key ID: 429EF1C337871656
4 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,7 @@ local serde = require("@lune/serde")
local stdio = require("@lune/stdio")
local PLATFORM_SEP = if process.os == "windows" then "\\" else "/"
_G.interactive = false
-- A mapping of things to do depending on the file present
local PATH_ACTION_MAP: { [string]: (dir: string) -> number? } = {

View file

@ -8,6 +8,8 @@ export type DataModelTree = rojoSyncConfig.DataModelTree
export type Tree = rojoSyncConfig.Tree
export type SyncConfig = rojoSyncConfig.SyncConfig
_G.interactive = false
--- Generates an Argon sync configuration file (`default.project.json`) from a list of
--- input files to be included.

View file

@ -4,6 +4,7 @@ local serde = require("@lune/serde")
local stdio = require("@lune/stdio")
local PLATFORM_SEP = if process.os == "windows" then "\\" else "/"
_G.interactive = false
-- A mapping of things to do depending on the file present
local PATH_ACTION_MAP: { [string]: (dir: string) -> number? } = {

View file

@ -49,6 +49,7 @@ export type SyncConfig = {
}
local PLATFORM_SEP = if process.os == "windows" then "\\" else "/"
_G.interactive = false
--- Generates a Rojo sync configuration file (`default.project.json`) from a list of
--- input files to be included.