Charm-based CLI with JSON persistence, status/list filters, external editor editing, command-history undo/redo, and glamour markdown without AutoStyle OSC hangs. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
224 B
Go
11 lines
224 B
Go
package command
|
|
|
|
import "context"
|
|
|
|
// Command is a reversible unit of work for future offline sync / undo trees.
|
|
type Command interface {
|
|
Execute(ctx context.Context) error
|
|
Undo(ctx context.Context) error
|
|
Name() string
|
|
}
|