aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/console/command/command.rs
blob: c09940e2b640c7059f3a5061f9e9acdd593752a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
use crate::symfony::component::console::completion::completion_input::CompletionInput;
use crate::symfony::component::console::completion::completion_suggestions::CompletionSuggestions;
use crate::symfony::component::console::input::input_definition::InputDefinition;
use crate::symfony::component::console::input::input_interface::InputInterface;
use crate::symfony::component::console::output::output_interface::OutputInterface;
use shirabe_php_shim::PhpMixed;

pub trait Command {
    fn get_name(&self) -> String {
        todo!()
    }
    fn set_name(&mut self, _name: &str) {
        todo!()
    }
    fn get_description(&self) -> String {
        todo!()
    }
    fn set_description(&mut self, _description: &str) {
        todo!()
    }
    fn get_definition(&self) -> &InputDefinition {
        todo!()
    }
    fn complete(&self, _input: &CompletionInput, _suggestions: &mut CompletionSuggestions) {
        todo!()
    }
}

#[derive(Debug)]
pub struct CommandBase;

impl Command for CommandBase {}

impl CommandBase {
    pub fn new(_name: Option<&str>) -> Self {
        todo!()
    }

    pub fn set_name(&mut self, _name: &str) -> &mut Self {
        todo!()
    }

    pub fn get_name(&self) -> Option<String> {
        todo!()
    }

    pub fn set_description(&mut self, _description: &str) -> &mut Self {
        todo!()
    }

    pub fn get_description(&self) -> String {
        todo!()
    }

    pub fn set_help(&mut self, _help: &str) -> &mut Self {
        todo!()
    }

    pub fn set_definition(&mut self, _definition: PhpMixed) -> &mut Self {
        todo!()
    }

    pub fn get_definition(&self) -> &InputDefinition {
        todo!()
    }

    pub fn add_argument(
        &mut self,
        _name: &str,
        _mode: Option<i64>,
        _description: &str,
        _default: PhpMixed,
    ) -> &mut Self {
        todo!()
    }

    pub fn add_option(
        &mut self,
        _name: &str,
        _shortcut: Option<&str>,
        _mode: Option<i64>,
        _description: &str,
        _default: PhpMixed,
    ) -> &mut Self {
        todo!()
    }

    pub fn set_aliases(&mut self, _aliases: &[String]) -> &mut Self {
        todo!()
    }

    pub fn get_aliases(&self) -> Vec<String> {
        todo!()
    }

    pub fn set_hidden(&mut self, _hidden: bool) -> &mut Self {
        todo!()
    }

    pub fn is_hidden(&self) -> bool {
        todo!()
    }

    pub fn run(
        &mut self,
        _input: &mut dyn InputInterface,
        _output: &mut dyn OutputInterface,
    ) -> anyhow::Result<i64> {
        todo!()
    }

    pub fn get_helper(&self, _name: &str) -> PhpMixed {
        todo!()
    }

    pub fn get_helper_set(&self) -> PhpMixed {
        todo!()
    }
}