This commit is contained in:
2025-12-09 23:19:25 -06:00
parent 657e342159
commit 37f2cff6ec
20 changed files with 1716 additions and 3139 deletions

View File

@@ -1,7 +1,7 @@
// cell config - Manage system and actor configurations
var toml = use('toml')
var shop = use('shop')
var pkg = use('package')
var text = use('text')
function print_help() {
@@ -104,7 +104,7 @@ if (args.length == 0) {
return
}
var config = shop.load_config()
var config = pkg.load_config()
if (!config) {
log.error("Failed to load cell.toml")
$_.stop()
@@ -171,7 +171,7 @@ switch (command) {
}
set_nested(config, path, value)
shop.save_config(config)
pkg.save_config(config)
log.console("Set " + key + " = " + format_value(value))
break
@@ -230,7 +230,7 @@ switch (command) {
var value = parse_value(value_str)
set_nested(config.actors[actor_name], path, value)
shop.save_config(config)
pkg.save_config(config)
log.console("Set actors." + actor_name + "." + key + " = " + format_value(value))
break