1use derive_wizard::Wizard;
2
3#[derive(Debug, Wizard)]
4#[allow(unused)]
5struct Article {
6 #[prompt("Enter the article title:")]
7 title: String,
8
9 #[prompt("Write the article content:")]
10 #[editor]
11 content: String,
12
13 #[prompt("Add tags (comma-separated):")]
14 tags: String,
15}
16
17fn main() {
18 println!("Article Wizard Demo");
19 println!("This demonstrates the #[editor] attribute");
20 println!("which opens your preferred text editor for longer input.\n");
21
22 let article = Article::wizard_builder().build();
23 println!("{article:#?}");
24}