File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3391
3391
"cliEnter" : {
3392
3392
"message" : " CLI mode detected"
3393
3393
},
3394
+ "cliDevEnter" : {
3395
+ "message" : " CLI only developer mode detected"
3396
+ },
3394
3397
"cliReboot" : {
3395
3398
"message" : " CLI reboot detected"
3396
3399
},
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { serial } from "../serial";
12
12
import FileSystem from "../FileSystem" ;
13
13
import { ispConnected } from "../utils/connection" ;
14
14
import { initializeModalDialog } from "../utils/initializeModalDialog" ;
15
+ import { get as getConfig } from "../ConfigStorage" ;
15
16
16
17
const cli = {
17
18
lineDelayMs : 5 ,
@@ -477,7 +478,7 @@ cli.read = function (readInfo) {
477
478
this . lastArrival = new Date ( ) . getTime ( ) ;
478
479
479
480
if ( ! CONFIGURATOR . cliValid && validateText . indexOf ( "CLI" ) !== - 1 ) {
480
- gui_log ( i18n . getMessage ( "cliEnter" ) ) ;
481
+ gui_log ( i18n . getMessage ( getConfig ( "cliOnlyMode" ) ?. cliOnlyMode ? "cliDevEnter" : "cliEnter" ) ) ;
481
482
CONFIGURATOR . cliValid = true ;
482
483
// begin output history with the prompt (last line of welcome message)
483
484
// this is to match the content of the history with what the user sees on this tab
You can’t perform that action at this time.
0 commit comments