github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/control/controldisplay/formatter.go (about)

     1  package controldisplay
     2  
     3  import (
     4  	"context"
     5  	"github.com/turbot/steampipe/pkg/control/controlexecute"
     6  	"io"
     7  )
     8  
     9  type Formatter interface {
    10  	Format(ctx context.Context, tree *controlexecute.ExecutionTree) (io.Reader, error)
    11  	FileExtension() string
    12  	Name() string
    13  	Alias() string
    14  }
    15  
    16  type FormatterBase struct{}
    17  
    18  func (*FormatterBase) Alias() string {
    19  	return ""
    20  }