Skip to content

Commit

Permalink
minify
Browse files Browse the repository at this point in the history
  • Loading branch information
Spishous committed Mar 22, 2022
1 parent 9c570da commit f98bce8
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions spish.phar
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,10 @@ class script_object {
}

// Returns all foreground color names
public function getForegroundColors() {
return array_keys($this->foreground_colors);
}
public function getForegroundColors() { return array_keys($this->foreground_colors); }

// Returns all background color names
public function getBackgroundColors() {
return array_keys($this->background_colors);
}
public function getBackgroundColors() { return array_keys($this->background_colors); }
public function clear(){
echo "\n";
echo chr(27).chr(91).'H'.chr(27).chr(91).'J';
Expand All @@ -138,12 +134,8 @@ class script_object {
echo "\n";
return $this;
}
public function hideKey(){
system('stty -echo');
}
public function showKey(){
system('stty echo');
}
public function hideKey(){ system('stty -echo'); }
public function showKey(){ system('stty echo'); }
public function inputbool($prompt = '') {
$prompt && print $prompt." ";
$this->printStyle("(y/n) ","green");
Expand All @@ -158,8 +150,7 @@ class script_object {
}
public function input($prompt = '') {
$prompt && print $prompt;
$line=str_replace("
","",fgets(STDIN));
$line=fgets(STDIN);
$line=trim($line);
return $line;
}
Expand Down Expand Up @@ -195,7 +186,7 @@ class gitInfo extends script_object{
}
}
class command extends gitInfo{
public function version(){
public function version(){
$this->print("current version ")->printStyle(VERSION,"green","",true);
return $this;
}
Expand Down

0 comments on commit f98bce8

Please sign in to comment.