Commit d28da283 authored by Freddy's avatar Freddy

Merge branch 'patch/ask' into 'master'

ask: Add a space to every question automatically

Closes #96

See merge request !104
parents 63bb38f6 1218d60d
Pipeline #2144 passed with stages
in 1 minute and 42 seconds
...@@ -1778,12 +1778,12 @@ class Core extends Password { ...@@ -1778,12 +1778,12 @@ class Core extends Password {
public function ask($msg, $type = "none") { public function ask($msg, $type = "none") {
switch($type) { switch($type) {
case 'required': case 'required':
return $this->askQuestion("\n\033[01;33m" . $msg . "\033[0m"); return $this->askQuestion("\n\033[01;33m" . $msg . "\033[0m ");
case 'optional': case 'optional':
return $this->askQuestion("\n\033[01;36m" . $msg . "\033[0m"); return $this->askQuestion("\n\033[01;36m" . $msg . "\033[0m ");
case 'none': case 'none':
default: default:
return $this->askQuestion("\n" . $msg); return $this->askQuestion("\n" . $msg . " ");
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment