8
8
* License: GNU/GPLv2
9
9
* @see LICENSE.txt
10
10
*
11
- * This file: CLI handler (last modified: 2025.03.30 ).
11
+ * This file: CLI handler (last modified: 2025.10.07 ).
12
12
*/
13
13
14
14
namespace phpMussel \CLI ;
@@ -85,7 +85,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
85
85
});
86
86
87
87
/** Echo the ASCII header art and CLI-mode information. */
88
- echo "\033[0;33m " . sprintf ($ this ->Loader ->L10N ->getString ('cli_ln1 ' ), PHP_VERSION , $ this ->Loader ->ScriptVersion , $ this ->CLIVersion ) . "\n\n" . $ this ->Loader ->L10N ->getString ('cli_ln2 ' ) . "\n\n" . $ this ->Loader ->L10N ->getString ('cli_ln3 ' );
88
+ echo $ this -> Scanner -> cliColour ( "\033[0;33m " ) . sprintf ($ this ->Loader ->L10N ->getString ('cli_ln1 ' ), PHP_VERSION , $ this ->Loader ->ScriptVersion , $ this ->CLIVersion ) . "\n\n" . $ this ->Loader ->L10N ->getString ('cli_ln2 ' ) . "\n\n" . $ this ->Loader ->L10N ->getString ('cli_ln3 ' );
89
89
90
90
/** Open STDIN. */
91
91
$ Handle = fopen ('php://stdin ' , 'rb ' );
@@ -98,7 +98,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
98
98
}
99
99
100
100
/** Echo the CLI-mode prompt. */
101
- echo "\n\n\033[0;92m>> \033[0m " ;
101
+ echo "\n\n" . $ this -> Scanner -> cliColour ( " \033[0;92m " ) . ' >> ' . $ this -> Scanner -> cliColour ( " \033[0m " ) . " " ;
102
102
103
103
/** Wait for user input. */
104
104
$ Clean = trim (fgets ($ Handle ));
@@ -118,7 +118,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
118
118
}
119
119
120
120
// Yellow.
121
- echo "\033[0;33m " ;
121
+ echo $ this -> Scanner -> cliColour ( "\033[0;33m " ) ;
122
122
123
123
/** Generate a hash signature using a file or directory. */
124
124
if (substr ($ Command , 0 , 10 ) === 'hash_file: ' ) {
0 commit comments