lots of changes and reducing dependency imports

This commit is contained in:
Robin Olsen
2026-02-28 16:39:50 +01:00
parent 697b17e890
commit ba0115d1bc
54 changed files with 458 additions and 327 deletions

View File

@@ -0,0 +1,21 @@
package models
import "context"
// Interface represents a user interface for interacting with the application.
// It can be any implementation that fulfills the Run method.
type Interface interface {
Run(context.Context, Config) error
}
// InterfaceType represents the type of user interface
type InterfaceType string
// Interface represents a user interface for interacting with the application.
// Keep lower case to avoid confusion with Go's built-in interfaces.
const (
InterfaceTypeCLI InterfaceType = "cli"
InterfaceTypeTUI InterfaceType = "tui"
InterfaceTypeWeb InterfaceType = "web"
InterfaceTypeREPL InterfaceType = "repl"
)