mirror of
https://github.com/ilyakooo0/bat.git
synced 2024-08-17 12:00:22 +03:00
Update input API example
This commit is contained in:
parent
c03a027240
commit
c4d0d068e4
@ -9,9 +9,9 @@ fn main() {
|
|||||||
.line_numbers(true)
|
.line_numbers(true)
|
||||||
.inputs(vec![
|
.inputs(vec![
|
||||||
Input::from_bytes(b"echo 'Hello World!'")
|
Input::from_bytes(b"echo 'Hello World!'")
|
||||||
.name("embedded.sh")
|
.name("embedded.sh") // Dummy name provided to detect the syntax.
|
||||||
.title("An embedded shell script.")
|
.kind("Embedded")
|
||||||
.kind("Embedded"),
|
.title("An embedded shell script."),
|
||||||
Input::from_stdin().title("Standard Input").kind("FD"),
|
Input::from_stdin().title("Standard Input").kind("FD"),
|
||||||
])
|
])
|
||||||
.print()
|
.print()
|
||||||
|
Loading…
Reference in New Issue
Block a user