Skip to content

Commit b9aade6

Browse files
committed
fix: missed one spot that was hard-coding default guidebook
1 parent 4654609 commit b9aade6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: plugins/plugin-codeflare/src/controller/terminal.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import React from "react"
1818
import { Allotment } from "allotment"
1919
import { Loading } from "@kui-shell/plugin-client-common"
2020
import { Arguments, encodeComponent } from "@kui-shell/core"
21+
import { defaultGuidebook } from "@kui-shell/client/config.d/client.json"
2122

2223
import respawn from "./respawn"
2324

@@ -55,9 +56,6 @@ type State = Partial<Pick<BaseProps, "cmdline" | "env">> & {
5556
}
5657

5758
class TaskTerminal extends React.PureComponent<Props, State> {
58-
/** Default guidebook to show in the terminal */
59-
private readonly defaultGuidebook = "ml/codeflare"
60-
6159
/** Allotment initial split sizes */
6260
private readonly sizes = [40, 60]
6361

@@ -76,7 +74,7 @@ class TaskTerminal extends React.PureComponent<Props, State> {
7674
const { argv, env } = await respawn(this.tasks[0].argv)
7775
const cmdline = [
7876
...argv.map((_) => encodeComponent(_)),
79-
guidebook || this.defaultGuidebook,
77+
guidebook || defaultGuidebook,
8078
...(guidebook ? ["--ifor", guidebook] : []),
8179
]
8280
.filter(Boolean)

0 commit comments

Comments
 (0)