61 $this->style =
new SymfonyStyle($in, $out);
70 $this->style->note($message);
76 if (!$this->say_yes) {
77 return $this->style->confirm($message,
false);
79 $this->
inform(
"Automatically confirmed:\n\n$message");
86 public function title(
string $title) : void
88 $this->style->title($title);
91 public function success(
string $text) : void
93 $this->style->success($text);
96 public function error(
string $text) : void
98 $this->style->error($text);
101 public function text(
string $text) : void
103 $this->style->text($text);
108 $this->last_objective_was_notable = $is_notable;
109 $this->last_objective_label = $label;
110 $this->output_in_objective =
false;
112 $this->style->write(str_pad($label .
"...", self::LABEL_WIDTH));
118 if ($this->output_in_objective) {
119 $this->
startObjective($this->last_objective_label, $this->last_objective_was_notable);
123 $this->style->write(
"[<fg=green>OK</>]\n");
130 if ($this->output_in_objective || !$this->last_objective_was_notable) {
135 $this->style->write(
"[<fg=red>FAILED</>]\n");
142 $this->output_in_objective =
true;
143 $this->style->write(
"[in progress]\n");
149 return $this->last_objective_was_notable
150 || $this->out->isVeryVerbose()
151 || $this->out->isDebug();
Wrapper around symfonies input and output facilities to provide just the functionality required for t...
startObjective(string $label, bool $is_notable)
__construct(InputInterface $in, OutputInterface $out, bool $say_yes=false)
This defines ways in which objectives may interact with admins during the setup.
confirmOrDeny(string $message)
$last_objective_was_notable