nose-pluto/bin/pwd.ts
2025-09-29 21:18:39 -07:00

10 lines
278 B
TypeScript

// Show the current working directory.
import { dirname } from "path"
import { projectDir } from "@/project"
import { sessionGet } from "@/session"
export default async function () {
const root = projectDir()
return (sessionGet("cwd") || root).replace(dirname(root), "")
}