mirror of
https://github.com/pesde-pkg/scripts.git
synced 2025-03-04 19:11:43 +00:00
feat: disable interactive mode for tooling by setting global state
This commit is contained in:
parent
3e3a86de18
commit
88de611743
4 changed files with 5 additions and 0 deletions
|
@ -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? } = {
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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? } = {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue