1 unstable release

0.1.0 Jun 11, 2019

#7 in #substitute

Download history 24/week @ 2024-09-21 34/week @ 2024-09-28 16/week @ 2024-10-05 16/week @ 2024-10-12 15/week @ 2024-10-19 14/week @ 2024-10-26 9/week @ 2024-11-02

56 downloads per month

MIT/Apache

8KB
122 lines

subtoml-rs

crates.io badge

subtoml-rs is a CLI utility that substitutes parts of TOML file, inspired by dahlia/subtoml, but written in Rust.

Usage

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

Example

$ 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.

Dependencies

~6.5MB
~126K SLoC