on master help sign in
Update input API example
c4d0d06Ethan P
examples/inputs.rs+3−3
@@ -9,9 +9,9 @@ fn main() {
9 .line_numbers(true)
9 .line_numbers(true)
10 .inputs(vec![
10 .inputs(vec![
11 Input::from_bytes(b"echo 'Hello World!'")
11 Input::from_bytes(b"echo 'Hello World!'")
12− .name("embedded.sh")
12+ .name("embedded.sh") // Dummy name provided to detect the syntax.
13+ .kind("Embedded")
13− .title("An embedded shell script.")
14+ .title("An embedded shell script."),
14− .kind("Embedded"),
15 Input::from_stdin().title("Standard Input").kind("FD"),
15 Input::from_stdin().title("Standard Input").kind("FD"),
16 ])
16 ])
17 .print()
17 .print()