Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutColorStrings ¶
OutColorStrings return color code
Types ¶
type Output ¶
type Output struct { // Template variable value (in unimplemented). // - ${COUNT} ... Count value(int) // - ${SERVER} ... Server Name // - ${ADDR} ... Address // - ${USER} ... User Name // - ${PORT} ... Port // - ${DATE} ... Date(YYYY/mm/dd) // - ${YEAR} ... Year(YYYY) // - ${MONTH} ... Month(mm) // - ${DAY} ... Day(dd) // - ${TIME} ... Time(HH:MM:SS) // - ${HOUR} ... Hour(HH) // - ${MINUTE} ... Minute(MM) // - ${SECOND} ... Second(SS) Templete string // prompt is Output prompt. Prompt string // target server name. ${SERVER} Server string // Count value. ${COUNT} Count int // Selected Server list ServerList []string // ServerConfig Conf conf.ServerConfig // Progress bar Progress *mpb.Progress ProgressWG *sync.WaitGroup // Enable/Disable print header EnableHeader bool DisableHeader bool // Auto Colorize flag // TODO(blacknon): colormodeに応じて、パイプ経由だった場合は色分けしないなどの対応ができるように条件分岐する(v0.6.2) AutoColor bool }
Output struct. command execute and lssh-shell mode output data.
func (*Output) NewWriter ¶
func (o *Output) NewWriter() (writer *io.PipeWriter)
NewWriter return io.WriteCloser at Output printer.
func (*Output) Printer ¶
func (o *Output) Printer(reader io.ReadCloser)
Printer output stdout from reader.
Click to show internal directories.
Click to hide internal directories.