fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user