hyperlink_demo/hyperlink_demo.rs
1use bug::{bug, init, IssueTemplate, HyperlinkMode};
2
3fn main() -> Result<(), &'static str> {
4 // Initialize with auto-detection (default)
5 init("tristanpoland", "GLUE")
6 .add_template("demo", IssueTemplate::new(
7 "Demo Issue: {title}",
8 "This is a demo issue with title: {title}"
9 ))
10 .hyperlinks(HyperlinkMode::Auto) // This is the default
11 .build()?;
12
13 println!("Auto-detect hyperlinks mode:");
14 let _url1 = bug!("demo", {
15 title = "Hyperlink Demo"
16 });
17
18 Ok(())
19}