Skip to content

Commit

Permalink
docs(example): add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrubek committed Mar 18, 2023
1 parent 0594e65 commit e87dc92
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/cargo-autodetect.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(
// automatically determine the name of all crates in the workspace and update their version strings
cargo: Some(Autodetect),
)
4 changes: 4 additions & 0 deletions examples/cargo-manual.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(
// Updates all of the packages in the cargo workspace that match the given names
cargo: Some(Packages(["bomper"])),
)
7 changes: 7 additions & 0 deletions examples/file-search.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(
by_file: Some({
// Attempts to update version strings that match the old version if they are located beneath a line containing the given value
"Cargo.toml": ( search_value: Some("bomper"), ),
"Cargo.lock": ( search_value: Some("bomper"), ),
}),
)
7 changes: 7 additions & 0 deletions examples/file-simple.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(
by_file: Some({
// naively updates all strings in the files that match the old version
"Cargo.toml": ( search_value: None, ),
"Cargo.lock": ( search_value: None, ),
}),
)

0 comments on commit e87dc92

Please sign in to comment.