feat: resource list and table output formatter
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
package interfaces
|
||||
|
||||
import "io"
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type Formatter interface {
|
||||
Format(object []any) (io.Reader, error)
|
||||
Format(object *ResourceList) (io.Reader, error)
|
||||
}
|
||||
|
||||
type TableOutput interface {
|
||||
ColumnNames() []string
|
||||
Columns() []any
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user