From 5fe37a7f129bb1245ea5f26fc16e168e6659cd5b Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Fri, 20 Mar 2026 17:51:09 +0000 Subject: [PATCH] feat(cd): implement cd command parity --- internal/homesick/cli/cli.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/homesick/cli/cli.go b/internal/homesick/cli/cli.go index de5a062..d18dd41 100644 --- a/internal/homesick/cli/cli.go +++ b/internal/homesick/cli/cli.go @@ -172,7 +172,9 @@ type destroyCmd struct { Castle string `arg:"" optional:"" name:"CASTLE" help:"Castle name."` } -type cdCmd struct{} +type cdCmd struct { + Castle string `arg:"" optional:"" name:"CASTLE" help:"Castle name."` +} type openCmd struct{} @@ -192,7 +194,7 @@ func (c *commitCmd) Run(app *core.App) error { return app.Commit(defaultCastle(c.Castle), c.Message) } func (c *destroyCmd) Run(app *core.App) error { return app.Destroy(defaultCastle(c.Castle)) } -func (c *cdCmd) Run() error { return notImplemented("cd") } +func (c *cdCmd) Run(app *core.App) error { return app.ShowPath(defaultCastle(c.Castle)) } func (c *openCmd) Run() error { return notImplemented("open") } func (c *execCmd) Run() error { return notImplemented("exec") } func (c *execAllCmd) Run() error { return notImplemented("exec_all") }