aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/completion/output/completion_output_interface.rs
blob: d9245f828022e6a2edb642b475c5769915a97157 (plain)
1
2
3
4
5
6
7
8
9
//! ref: composer/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php

use crate::completion::CompletionSuggestions;
use crate::output::OutputInterface;

/// Transforms the `CompletionSuggestions` object into output readable by the shell completion.
pub trait CompletionOutputInterface: std::fmt::Debug {
    fn write(&self, suggestions: &CompletionSuggestions, output: &dyn OutputInterface);
}