feat(push): implement push command parity

This commit is contained in:
Micheal Wilkinson
2026-03-20 17:46:07 +00:00
parent e60000680b
commit 8a451cbaee
2 changed files with 11 additions and 2 deletions

View File

@@ -159,7 +159,9 @@ type pullCmd struct {
Castle string `arg:"" optional:"" name:"CASTLE" help:"Castle name."`
}
type pushCmd struct{}
type pushCmd struct {
Castle string `arg:"" optional:"" name:"CASTLE" help:"Castle name."`
}
type commitCmd struct{}
@@ -180,7 +182,7 @@ type rcCmd struct {
type generateCmd struct{}
func (c *pullCmd) Run(app *core.App) error { return app.Pull(defaultCastle(c.Castle)) }
func (c *pushCmd) Run() error { return notImplemented("push") }
func (c *pushCmd) Run(app *core.App) error { return app.Push(defaultCastle(c.Castle)) }
func (c *commitCmd) Run() error { return notImplemented("commit") }
func (c *destroyCmd) Run() error { return notImplemented("destroy") }
func (c *cdCmd) Run() error { return notImplemented("cd") }