mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
* chore: remove workspace * chore: regen dist config * fix: readme path * chore: extra-artifacts as files * chore: generate dist CI * chore: prepare for prerelease * chore: switch to include + generate-files * chore: use run step for generate-files --------- Co-authored-by: Loric André <loric.andre@noreply.me>
15 lines
313 B
Rust
15 lines
313 B
Rust
extern crate skim;
|
|
use skim::prelude::*;
|
|
|
|
pub fn main() {
|
|
let options = SkimOptions::default();
|
|
|
|
let selected_items = Skim::run_with(options, None)
|
|
.map(|out| out.selected_items)
|
|
.unwrap_or_default();
|
|
|
|
for item in selected_items.iter() {
|
|
println!("{}", item.output());
|
|
}
|
|
}
|