-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: input suggestions are now a slice chore: update examples * refactor: SpinnerActions doesnt need to be exported, that was from an earlier version of run actions * fix: typo * feat: allow non static str * feat: SpinnerActionRunner.title now accepts into<string> * fix: input not showing cursor when done * fix: clippy warnings * feat: fancy list chore: test chore: examples
- Loading branch information
Showing
5 changed files
with
409 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
use demand::List; | ||
|
||
fn main() { | ||
let _ = List::new("hewo") | ||
.description("so many things") | ||
.items(&[ | ||
"hi", | ||
"hewo", | ||
"how are u", | ||
"i like trains", | ||
":3", | ||
"do you like jazz", | ||
"hehe", | ||
]) | ||
.filterable(true) | ||
.run(); | ||
let _ = List::new("long hewo") | ||
.item("Lettuce") | ||
.item("Tomatoes") | ||
.item("Charm Sauce") | ||
.item("Jalapenos") | ||
.item("Cheese") | ||
.item("Vegan Cheese") | ||
.item("Nutella") | ||
.item("Peanut Butter") | ||
.item("Banana") | ||
.item("Strawberries") | ||
.item("Blueberries") | ||
.item("Pineapple") | ||
.item("Mango") | ||
.item("Kiwi") | ||
.item("Passion Fruit") | ||
.item("Peaches") | ||
.item("Raspberries") | ||
.item("Blackberries") | ||
.item("Mint") | ||
.item("Chocolate Chips") | ||
.item("Oreos") | ||
.item("Brownie Bites") | ||
.item("Cookie Dough") | ||
.item("Graham Cracker Crumbs") | ||
.item("M&Ms") | ||
.item("Reese's Pieces") | ||
.item("Butterfinger") | ||
.item("Heath Bar") | ||
.item("Kit Kat") | ||
.item("Snickers") | ||
.item("Twix") | ||
.item("Caramel") | ||
.item("Hot Fudge") | ||
.item("Marshmallow") | ||
.item("Whipped Cream") | ||
.item("Chocolate Syrup") | ||
.item("Caramel Syrup") | ||
.item("Strawberry Syrup") | ||
.item("Peanut Butter Syrup") | ||
.item("Nutella Syrup") | ||
.item("Honey") | ||
.item("Sprinkles") | ||
.item("Chocolate Sprinkles") | ||
.item("Coconut Flakes") | ||
.item("Almonds") | ||
.item("Peanuts") | ||
.item("Walnuts") | ||
.item("Pecans") | ||
.item("Cashews") | ||
.item("Pistachios") | ||
.item("Macadamia Nuts") | ||
.item("Hazelnuts") | ||
.item("Peanut Butter Cups") | ||
.item("Gummy Bears") | ||
.item("Sour Patch Kids") | ||
.item("Sour Gummy Worms") | ||
.item("Sour Skittles") | ||
.item("Skittles") | ||
.item("Starburst") | ||
.item("Twizzlers") | ||
.item("Milk Duds") | ||
.filterable(true) | ||
.run(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.