summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 11:14:39 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 11:14:39 -0500
commit471df4d7a1654f35756a202e26a5d28815222012 (patch)
tree743a150149b1c0083c125da4c7c0ca487b2d600f /add.go
parent10f8e8c5ea5d3dd191d7e51682efc237d34cded4 (diff)
More flexible and better documentation
Diffstat (limited to 'add.go')
-rw-r--r--add.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/add.go b/add.go
index 67427df..baabef7 100644
--- a/add.go
+++ b/add.go
@@ -41,7 +41,7 @@ type options struct {
DuplicateScope string `json:"duplicateScope"`
}
-func addCard(c *http.Client, front, back string) tea.Cmd {
+func addCard(c *http.Client, deckName, modelName, front, back string) tea.Cmd {
return func() tea.Msg {
if back == "" {
return errMsg(errors.New("definition is blank"))