summaryrefslogtreecommitdiff
path: root/internal/actions/clients.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-08-05 12:36:30 -0600
committerT <t@tjp.lol>2025-08-06 12:13:11 -0600
commit65e2ed65775d64afbc6065a3b4ac1069020093ca (patch)
treef94fabfed5be2d2622429ebc7c8af1bf51085824 /internal/actions/clients.go
parent665bd389a0a1c8adadcaa1122e846cc81f5ead31 (diff)
most features in TUI working, remaining unimplemented keybinds need a modal view
Diffstat (limited to 'internal/actions/clients.go')
-rw-r--r--internal/actions/clients.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/actions/clients.go b/internal/actions/clients.go
index bc77139..c71ef4a 100644
--- a/internal/actions/clients.go
+++ b/internal/actions/clients.go
@@ -12,7 +12,7 @@ import (
)
// CreateClient creates a new client with the given name and optional email/rate
-func (a *actionsImpl) CreateClient(ctx context.Context, name, email string, billableRate *float64) (*queries.Client, error) {
+func (a *actions) CreateClient(ctx context.Context, name, email string, billableRate *float64) (*queries.Client, error) {
// Parse name and email if name contains email format "Name <email>"
finalName, finalEmail := parseNameAndEmail(name, email)
@@ -40,7 +40,7 @@ func (a *actionsImpl) CreateClient(ctx context.Context, name, email string, bill
}
// FindClient finds a client by name or ID
-func (a *actionsImpl) FindClient(ctx context.Context, nameOrID string) (*queries.Client, error) {
+func (a *actions) FindClient(ctx context.Context, nameOrID string) (*queries.Client, error) {
// Parse as ID if possible, otherwise use 0
var idParam int64
if id, err := strconv.ParseInt(nameOrID, 10, 64); err == nil {
@@ -89,4 +89,4 @@ func parseNameAndEmail(nameArg, emailArg string) (string, string) {
return finalName, finalEmail
}
-var emailAndNameRegex = regexp.MustCompile(`^(.+?)<([^>]+@[^>]+)>$`) \ No newline at end of file
+var emailAndNameRegex = regexp.MustCompile(`^(.+?)<([^>]+@[^>]+)>$`)