Skip to content

Commit 7f7da4c

Browse files
committed
fix: remove a few more implicit uses of a profile named "default"
1 parent 9f82765 commit 7f7da4c

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/plugin-codeflare/src/controller/attach.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
*/
1616

1717
import { cli } from "madwizard/dist/fe/cli"
18-
import { MadWizardOptions } from "madwizard"
18+
import { MadWizardOptions, Profiles } from "madwizard"
1919
import { Arguments, encodeComponent } from "@kui-shell/core"
2020

2121
export default async function attach(args: Arguments) {
2222
const options: MadWizardOptions = {
23+
profile: await Profiles.lastUsed(),
2324
store: process.env.GUIDEBOOK_STORE,
2425
clean: false,
2526
interactive: args.parsedOptions.i || !args.parsedOptions.y,

plugins/plugin-codeflare/src/tray/menus/profiles/dashboards/open.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default async function openDashboard(
3636
createWindow: CreateWindowFunction
3737
) {
3838
const resp = await cli(["madwizard", "guide", guidebook], undefined, {
39+
profile,
3940
clean: false /* don't kill the port-forward subprocess! we'll manage that */,
4041
interactive: false,
4142
store: process.env.GUIDEBOOK_STORE,

plugins/plugin-madwizard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"access": "public"
2424
},
2525
"dependencies": {
26-
"madwizard": "^0.15.13"
26+
"madwizard": "^0.15.14"
2727
}
2828
}

0 commit comments

Comments
 (0)