Small confirmation to check if numbers can contain decimals
This commit is contained in:
parent
0fb641cdfd
commit
4aac153edb
2 changed files with 2 additions and 7 deletions
|
|
@ -51,12 +51,7 @@ func NewModel(rc *controllers.TableReadController, wc *controllers.TableWriteCon
|
|||
|
||||
// TEMP
|
||||
"new-item": commandctrl.NoArgCommand(wc.NewItem()),
|
||||
"set-string": func(args []string) tea.Cmd {
|
||||
if len(args) != 1 {
|
||||
return events.SetError(errors.New("expected attribute key"))
|
||||
}
|
||||
return wc.SetStringValue(dtv.SelectedItemIndex(), args[0])
|
||||
},
|
||||
|
||||
"put": func(args []string) tea.Cmd {
|
||||
return wc.PutItem(dtv.SelectedItemIndex())
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue