diff --git a/src/main/framework/system-commands/edit.ts b/src/main/framework/system-commands/edit.ts index 89b408f..f9a68ea 100644 --- a/src/main/framework/system-commands/edit.ts +++ b/src/main/framework/system-commands/edit.ts @@ -2,7 +2,7 @@ import { pathExists, stat } from 'fs-extra' import { ExecuteContext } from '../execute-context' async function edit(context: ExecuteContext): Promise { - const [, ...args] = context.prompt.split(' ') + const [, ...args] = context.prompt.value.split(' ') const path: string = context.runtime.resolve(args[0] || '.') const isLocationActive = await pathExists(path)