summaryrefslogtreecommitdiff
path: root/cmds.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmds.go')
-rw-r--r--cmds.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmds.go b/cmds.go
new file mode 100644
index 0000000..26cded5
--- /dev/null
+++ b/cmds.go
@@ -0,0 +1,20 @@
+package main
+
+import (
+ "fmt"
+)
+
+func cmdAdd(task string) error {
+ fmt.Println("added task: ", task)
+ return nil
+}
+
+func cmdDo(taskIndex int) error {
+ fmt.Println("completed task: ", taskIndex)
+ return nil
+}
+
+func cmdList() error {
+ fmt.Println("listed pending tasks")
+ return nil
+}