Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3391,6 +3391,9 @@
"cliEnter": {
"message": "CLI mode detected"
},
"cliDevEnter": {
"message": "CLI only developer mode detected"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detected or enabled ?

},
"cliReboot": {
"message": "CLI reboot detected"
},
Expand Down
3 changes: 2 additions & 1 deletion src/js/tabs/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { serial } from "../serial";
import FileSystem from "../FileSystem";
import { ispConnected } from "../utils/connection";
import { initializeModalDialog } from "../utils/initializeModalDialog";
import { get as getConfig } from "../ConfigStorage";

const cli = {
lineDelayMs: 5,
Expand Down Expand Up @@ -477,7 +478,7 @@ cli.read = function (readInfo) {
this.lastArrival = new Date().getTime();

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