Documentation
¶
Overview ¶
Package location defines the Location domain entity, its factory, and the Service port interface. Consumers depend on Service rather than any concrete implementation to preserve the hexagonal architecture boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
Location represents a single gitconfig includeIf entry: a repository path pattern associated with a dedicated gitconfig file and a short lookup key.
func NewLocation ¶
NewLocation creates a Location for the given key and path. The ConfigFile is set to ~/.gitconfigs/<key>.gitconfig automatically.
type Service ¶
type Service interface {
GetLocations() ([]Location, error)
FindLocationByKey(key string) (*Location, error)
SaveLocation(key string, location string) error
DeleteLocation(key string) error
}
Service is the port that defines all location management operations. Consumers (e.g. CLI adapters) depend on this interface, never on the concrete implementation, keeping the hexagonal boundary intact.