Skip to content

Commit 6243c36

Browse files
committed
fix: relative paths for plan and guide not properly handled
1 parent e480ac0 commit 6243c36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/plugin-madwizard/src/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
import { resolve } from "path"
1718
import { Arguments, ReactResponse, Registrar, Tab } from "@kui-shell/core"
1819
import { setTabReadonly } from "./util"
1920

2021
function withFilepath(cb: (filepath: string, tab: Tab) => Promise<ReactResponse["react"]>) {
2122
return async ({ tab, argvNoOptions }: Arguments) => {
22-
const filepath = argvNoOptions[1]
23+
const filepath = resolve(argvNoOptions[1])
2324
setTabReadonly({ tab })
2425
return {
2526
react: await cb(filepath, tab),

0 commit comments

Comments
 (0)