Crates.io | subtoml |
lib.rs | subtoml |
version | 0.1.0 |
source | src |
created_at | 2019-06-11 10:05:31.142453 |
updated_at | 2019-06-11 10:05:31.142453 |
description | Substitute parts of TOML file |
homepage | https://github.com/pbzweihander/subtoml |
repository | https://github.com/pbzweihander/subtoml |
max_upload_size | |
id | 140373 |
size | 19,629 |
subtoml-rs is a CLI utility that substitutes parts of TOML file, inspired by dahlia/subtoml, but written in Rust.
subtoml 0.1.0
pbzweihander <pbzweihander@gmail.com>
Substitute parts of TOML file
USAGE:
subtoml [OPTIONS] [--] [KEY=VALUE]...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --delete <KEY>... Keys to delete
-i, --input-file <FILE> Toml file to read. default: stdin
-o, --output-file <FILE> Toml file to write. default: stdout
ARGS:
<KEY=VALUE>... Entries to add or modify. Must be form of KEY[.SUBKEY...]=VALUE
$ subtoml -i Cargo.toml \
-d package \
-d dependencies.structopt \
dependencies.toml_edit=foo
[dependencies]
toml_edit = "foo"
subtoml-rs is distributed under the terms of both MIT License and Apache License 2.0. See COPYRIGHT for detail.