Skip to content

Commit

Permalink
support edit file in place
Browse files Browse the repository at this point in the history
add two opitons for set sub command:

- overwrite: save the result to the TOML file.
- backup: create a backup file before overwrite.

Both of them are false by default.

Signed-off-by: bin liu <[email protected]>
  • Loading branch information
liubin authored and gnprice committed Dec 3, 2022
1 parent a99be31 commit 63aa4c4
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 10 deletions.
262 changes: 262 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ serde = "1.0"
serde_json = "1.0"
structopt = "0.3"
toml_edit = "0.15"
chrono = "0.4"
Loading

0 comments on commit 63aa4c4

Please sign in to comment.