Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCommandPresent ¶ added in v0.9.0
func RemoveContents ¶
RemoveContents removes all files from a directory, but not the directory itself
Types ¶
type CmdExecutor ¶
type CmdExecutor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(log *slog.Logger) *CmdExecutor
func (*CmdExecutor) ExecWithStreamingOutput ¶ added in v0.8.0
func (c *CmdExecutor) ExecWithStreamingOutput(ctx context.Context, command string) error
func (*CmdExecutor) ExecuteCommandWithOutput ¶
type TablePrinter ¶
type TablePrinter struct {
// contains filtered or unexported fields
}
TablePrinter can be used to print data as a table
func NewTablePrinter ¶
func NewTablePrinter() *TablePrinter
NewTablePrinter returns a new table printer
func (*TablePrinter) Print ¶
func (t *TablePrinter) Print(headers []string, data [][]string)
Print prints the table
Click to show internal directories.
Click to hide internal directories.