switch WritePostCMD to higher order fn
This commit is contained in:
parent
1160665595
commit
01ce668160
2 changed files with 16 additions and 8 deletions
4
main.go
4
main.go
|
|
@ -18,11 +18,11 @@ const (
|
|||
)
|
||||
|
||||
func TODOCmd() tea.Msg {
|
||||
return gemlog.Notification("This action has not been implemented yet.")
|
||||
return gemlog.Notification("This action has not been implemented yet. Try another.")
|
||||
}
|
||||
|
||||
var mainCommands = map[Action]tea.Cmd{
|
||||
Write: gemlog.WritePostCMD,
|
||||
Write: gemlog.WritePostCMD(),
|
||||
Read: TODOCmd,
|
||||
Edit: TODOCmd,
|
||||
Delete: TODOCmd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue