Skip to content

Commit

Permalink
Add first possible annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ucyo committed Nov 29, 2022
1 parent 131cb71 commit 4fa4eb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/duplicate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ setup = "which ls"
shell = "none"
command = "dd if={ifile} of=/tmp/Cargo.toml.dd"

[run.dd.annotations]
filesize = "ls -al /tmp/Cargo.toml.dd | awk '{{print $5}}'"
modified = "ls -al /tmp/Cargo.toml.dd | awk '{{print $6\" \"$7\" \"$8}}'"

[run.cp]
command = "cp {ifile} /tmp/Cargo.toml.cp"

Expand Down
1 change: 1 addition & 0 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub(crate) struct Run {
prepare: Option<String>,
setup: Option<String>,
shell: Option<String>,
annotations: Option<HashMap<String, String>>,
command: String,
}

Expand Down

0 comments on commit 4fa4eb1

Please sign in to comment.