Skip to content

Commit af6b5cb

Browse files
committed
Clarify cli (dev only) mode
1 parent a80b170 commit af6b5cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

locales/en/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,6 +3391,9 @@
33913391
"cliEnter": {
33923392
"message": "CLI mode detected"
33933393
},
3394+
"cliDevEnter": {
3395+
"message": "CLI only developer mode detected"
3396+
},
33943397
"cliReboot": {
33953398
"message": "CLI reboot detected"
33963399
},

src/js/tabs/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { serial } from "../serial";
1212
import FileSystem from "../FileSystem";
1313
import { ispConnected } from "../utils/connection";
1414
import { initializeModalDialog } from "../utils/initializeModalDialog";
15+
import { get as getConfig } from "../ConfigStorage";
1516

1617
const cli = {
1718
lineDelayMs: 5,
@@ -477,7 +478,7 @@ cli.read = function (readInfo) {
477478
this.lastArrival = new Date().getTime();
478479

479480
if (!CONFIGURATOR.cliValid && validateText.indexOf("CLI") !== -1) {
480-
gui_log(i18n.getMessage("cliEnter"));
481+
gui_log(i18n.getMessage(getConfig("cliOnlyMode")?.cliOnlyMode ? "cliDevEnter" : "cliEnter"));
481482
CONFIGURATOR.cliValid = true;
482483
// begin output history with the prompt (last line of welcome message)
483484
// this is to match the content of the history with what the user sees on this tab

0 commit comments

Comments
 (0)