|
247 | 247 | if i != 0 {
|
248 | 248 | write!(buf, "{}", ifs.as_deref().unwrap_or("\n"))?;
|
249 | 249 | }
|
250 |
| - write!(buf, "{}", candidate.get_content().to_string_lossy())?; |
| 250 | + write!(buf, "{}", candidate.get_value().to_string_lossy())?; |
251 | 251 | }
|
252 | 252 | Ok(())
|
253 | 253 | }
|
@@ -341,7 +341,7 @@ set edit:completion:arg-completer[BIN] = { |@words|
|
341 | 341 | if i != 0 {
|
342 | 342 | write!(buf, "{}", ifs.as_deref().unwrap_or("\n"))?;
|
343 | 343 | }
|
344 |
| - write!(buf, "{}", candidate.get_content().to_string_lossy())?; |
| 344 | + write!(buf, "{}", candidate.get_value().to_string_lossy())?; |
345 | 345 | }
|
346 | 346 | Ok(())
|
347 | 347 | }
|
@@ -379,7 +379,7 @@ impl CommandCompleter for Fish {
|
379 | 379 | let completions = crate::engine::complete(cmd, args, index, current_dir)?;
|
380 | 380 |
|
381 | 381 | for candidate in completions {
|
382 |
| - write!(buf, "{}", candidate.get_content().to_string_lossy())?; |
| 382 | + write!(buf, "{}", candidate.get_value().to_string_lossy())?; |
383 | 383 | if let Some(help) = candidate.get_help() {
|
384 | 384 | write!(
|
385 | 385 | buf,
|
@@ -445,7 +445,7 @@ Register-ArgumentCompleter -Native -CommandName {bin} -ScriptBlock {{
|
445 | 445 | let completions = crate::engine::complete(cmd, args, index, current_dir)?;
|
446 | 446 |
|
447 | 447 | for candidate in completions {
|
448 |
| - write!(buf, "{}", candidate.get_content().to_string_lossy())?; |
| 448 | + write!(buf, "{}", candidate.get_value().to_string_lossy())?; |
449 | 449 | if let Some(help) = candidate.get_help() {
|
450 | 450 | write!(
|
451 | 451 | buf,
|
@@ -522,7 +522,7 @@ compdef _clap_dynamic_completer BIN"#
|
522 | 522 | if i != 0 {
|
523 | 523 | write!(buf, "{}", ifs.as_deref().unwrap_or("\n"))?;
|
524 | 524 | }
|
525 |
| - write!(buf, "{}", candidate.get_content().to_string_lossy())?; |
| 525 | + write!(buf, "{}", candidate.get_value().to_string_lossy())?; |
526 | 526 | }
|
527 | 527 | Ok(())
|
528 | 528 | }
|
|
0 commit comments