initial refactor of all column widgets to standard interface

This commit is contained in:
Bradley Cicenas
2019-07-05 19:08:16 -04:00
parent 1271ce96e8
commit 923edb967e
9 changed files with 198 additions and 178 deletions
+7 -5
View File
@@ -55,11 +55,13 @@ func (e *Single) Down() {
}
func (e *Single) SetWidth(w int) { e.Width = w }
func (e *Single) SetMeta(k, v string) {
if k == "[ENV-VAR]" {
e.Env.Set(k, v)
} else {
e.Info.Set(k, v)
func (e *Single) SetMeta(m models.Meta) {
for k, v := range m {
if k == "[ENV-VAR]" {
e.Env.Set(k, v)
} else {
e.Info.Set(k, v)
}
}
}