Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Update w fs #982

Closed
wants to merge 14 commits into from
Closed

Update w fs #982

wants to merge 14 commits into from

Conversation

ATorrise
Copy link
Contributor

@ATorrise ATorrise commented May 4, 2023

No description provided.

Amber Torrise and others added 14 commits March 30, 2023 11:04
…s to have text color

Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <112635587+ATorrise@users.noreply.github.com>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
Signed-off-by: Amber Torrise <at895452@broadcom.net>
@ATorrise ATorrise closed this May 4, 2023
if (ProcessUtils.isGuiAvailable() === GuiResult.GUI_AVAILABLE) {
Logger.getImperativeLogger().info(`Opening ${filePath} in graphical editor`);
if (editor != null) { spawn.spawn(editor, [filePath], { stdio: "inherit" }); }
if (editor != null) {
sync ? spawn.sync(editor, [filePath], { stdio: "inherit" }) : spawn.spawn(editor, [filePath], { stdio: "inherit" });

Check warning

Code scanning / CodeQL

Indirect uncontrolled command line

This command depends on an unsanitized [environment variable](1).
else { this.openInDefaultApp(filePath); }

} else {
if (editor == null) { editor = "vi"; }
Logger.getImperativeLogger().info(`Opening ${filePath} in command-line editor ${editor}`);
spawn.spawn(editor, [filePath], { stdio: "inherit" });
sync ? spawn.sync(editor, [filePath], { stdio: "inherit" }) : spawn.spawn(editor, [filePath], { stdio: "inherit" });

Check warning

Code scanning / CodeQL

Indirect uncontrolled command line

This command depends on an unsanitized [environment variable](1).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant