Features: - CLI structure with verbs and resources - Application config and parameters - Output formatters - Initial resource: dishes Reviewed-on: #1 Co-authored-by: bdoerfchen <git@bissendorf.co> Co-committed-by: bdoerfchen <git@bissendorf.co>
15 lines
189 B
Go
15 lines
189 B
Go
package interfaces
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type Formatter interface {
|
|
Format(object *ResourceList) (io.Reader, error)
|
|
}
|
|
|
|
type TableOutput interface {
|
|
ColumnNames() []string
|
|
Columns() []any
|
|
}
|