Crates.io | factorio-settings |
lib.rs | factorio-settings |
version | 1.0.0 |
source | src |
created_at | 2023-10-28 14:13:14.415622 |
updated_at | 2023-10-28 14:13:14.415622 |
description | CLI application to deserialize & reserialize Factorio's mod-settings.dat to JSON or TOML |
homepage | |
repository | https://github.com/CerulanLumina/factorio-settings |
max_upload_size | |
id | 1016960 |
size | 145,728 |
A command line utility to decode and encode mod settings (mod-settings.dat
) for Factorio
factorio-settings mod-settings.dat -f json | jq '.startup["my-color-setting"].value.g=1' | factorio-settings -f json - mod-settings.dat
factorio-settings mod-settings.dat json_settings.json
factorio-settings mod-settings.dat toml_settings.toml
Usage: factorio-settings [OPTIONS] <INPUT> [OUTPUT]
Arguments:
<INPUT> The input path to read binary settings from. Use "-" for stdin
[OUTPUT] The output file. Overwrites if present. Stdout if omitted
Options:
-m, --mode <MODE> Whether to encode or decode the input. If not provided, will attempt to infer based on output type, or input type, in that order [possible values: decode, encode]
-f, --format <FORMAT> The format for the serialized input/output. If omitted, will attempt to infer based on mode and input or output [possible values: toml, json]
-h, --help Print help
-V, --version Print version