ctx/internal/plugins/git/git.go
Ricardo Carneiro 69cadb4ea6 chore: initial scaffold with plugin system and placeholders
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 13:43:10 -03:00

32 lines
764 B
Go

// Package git implements the ctx git plugin.
// Full implementation: prompt 1.
package git
import (
"fmt"
"github.com/ricarneiro/ctx/internal/core"
"github.com/spf13/cobra"
)
func init() {
core.Register(&gitPlugin{})
}
type gitPlugin struct{}
func (g *gitPlugin) Name() string { return "git" }
func (g *gitPlugin) Version() string { return "0.0.1" }
func (g *gitPlugin) ShortDescription() string { return "Git repository summary for Claude" }
func (g *gitPlugin) Command(ctx *core.Context) *cobra.Command {
return &cobra.Command{
Use: "git",
Short: g.ShortDescription(),
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Fprintln(ctx.Stderr, "Not implemented yet — coming in prompt 1")
return nil
},
}
}