Documentation ¶
Index ¶
Constants ¶
View Source
const ( SanDir = "SAN" RawDir = "RAW" EnvDir = "ENV" TodayLink = "TODAY" ThisMonthLink = "THISMONTH" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Trim()'ed version of the command line. CommandLine string // Command names in a command line. e.g. ["cat", "grep"] ExeNames []string // Comment in a command line. Comment string // Whether the command line contained a no log command or had 184. // When 186 is detected, the output will always be logged. NoLog bool }
Command represents a single running command executed by the user on the shell.
type LogFiles ¶
type LogFiles struct { SanFile string RawFile string EnvFile string SanF *os.File RawF *os.File EnvF *os.File San *bufio.Writer Raw *bufio.Writer Env *bufio.Writer }
LogFiles represents a set of log files (san, raw and env) for a single command.
func CreateAndOpenLogFiles ¶
CreateAndOpenLogFiles opens the log files for a command.
Click to show internal directories.
Click to hide internal directories.