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

use crate::completion::completion_suggestions::CompletionSuggestions;
use crate::output::output_interface::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);
}