separate options

This commit is contained in:
2020-10-25 12:40:40 +03:00
parent 365fc32888
commit 1c7e9623ce
43 changed files with 510 additions and 493 deletions

View File

@@ -3,13 +3,13 @@ package value
import (
"time"
"gitoa.ru/go-4devs/console/input"
"gitoa.ru/go-4devs/console/input/flag"
)
type Time struct {
Empty
Val []time.Time
Flag input.Flag
Flag flag.Flag
}
func (t *Time) Append(in string) error {
@@ -36,7 +36,7 @@ func (t *Time) Times() []time.Time {
}
func (t *Time) Amy() interface{} {
if t.Flag&input.ValueArray > 0 {
if t.Flag.IsArray() {
return t.Times()
}