mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
ca567bf8cb
- actions use-codegen - Assert if starter kit files are created - metadata apply - Assert server metadata after apply - assert that --dry-run flag will not modify metadata on server - metadata clear - Assert with server metadata that operation was successful. - metadata inconsistency drop - Assert with server metadata that operation was successful. - metadata inconsistency status - Assert for all possible states - metadata reload - Assert effect of operation with server - migrate and seed subcommands - Add tests for MSSQL sources - Structure tests in such a way that it’s easy to add tests for new sources https://github.com/hasura/graphql-engine-mono/pull/1693 Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com> GitOrigin-RevId: fcdbb806d105978a07487a40f7fa6e16b3ab8816
21 lines
382 B
Go
21 lines
382 B
Go
package util
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/olekukonko/tablewriter"
|
|
)
|
|
|
|
func NewTableWriter(w io.Writer) *tablewriter.Table {
|
|
table := tablewriter.NewWriter(w)
|
|
|
|
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
|
|
table.SetAlignment(tablewriter.ALIGN_LEFT)
|
|
table.SetBorder(false)
|
|
table.SetRowSeparator("")
|
|
table.SetColumnSeparator("")
|
|
table.SetCenterSeparator("")
|
|
|
|
return table
|
|
}
|