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