email-mcp/internal/cli/app.go

29 lines
398 B
Go
Raw Normal View History

2026-04-10 07:34:33 +00:00
package cli
import (
"fmt"
2026-04-10 07:34:33 +00:00
"email-mcp/internal/secretstore"
)
2026-04-10 07:34:33 +00:00
type App struct {
store secretstore.Store
}
func NewApp(_ ...any) *App {
2026-04-10 07:34:33 +00:00
return &App{}
}
func (a *App) Run(args []string) error {
if len(args) == 0 {
return fmt.Errorf("usage: email-mcp <setup|mcp>")
}
switch args[0] {
case "setup", "mcp":
return nil
default:
return fmt.Errorf("unknown command: %s", args[0])
}
}