Skip to content

Commit dfc3d31

Browse files
committedJul 27, 2022
fix: boot and shutdown tray menus do not use specified profile
1 parent 1f9d194 commit dfc3d31

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎plugins/plugin-codeflare/src/controller/guide.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function guide(args: Arguments) {
3131
setTabReadonly(args)
3232

3333
const { argv, env } = respawnCommand(
34-
args.command.replace(/--type=renderer/, "").replace(/^codeflare\s+gui\s+guide/, "codeflare") + " -y" // run in non-interactive mode (-y is short for --yes)
34+
args.command.replace(/--type=renderer/, "").replace(/^codeflare\s+gui\s+guide/, "codeflare")
3535
)
3636

3737
args.command = argv.join(" ")

‎plugins/plugin-codeflare/src/tray/menus/profiles/boot.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import windowOptions from "../../window"
2222
/** Handler for booting up a profile */
2323
async function boot(profile: string, createWindow: CreateWindowFunction) {
2424
createWindow(
25-
["codeflare", "gui", "guide", "ml/ray/start/kubernetes", "--profile", profile],
25+
// re: -y, this means run in non-interactive mode (-y is short for --yes)
26+
["codeflare", "gui", "guide", "-y", "--profile", profile, "ml/ray/start/kubernetes"],
2627
windowOptions({ title: "Booting " + profile })
2728
)
2829
}

‎plugins/plugin-codeflare/src/tray/menus/profiles/shutdown.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import { shutDownIcon } from "../../icons"
2222
/** Handler for shutting down a profile */
2323
async function shutdown(profile: string, createWindow: CreateWindowFunction) {
2424
createWindow(
25-
["codeflare", "gui", "guide", "ml/ray/stop/kubernetes", "--profile", profile],
25+
// re: -y, this means run in non-interactive mode (-y is short for --yes)
26+
["codeflare", "gui", "guide", "-y", "--profile", profile, "ml/ray/stop/kubernetes"],
2627
windowOptions({ title: "Shutting down " + profile })
2728
)
2829
}

0 commit comments

Comments
 (0)