Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "incident-response", Short: "Create basic gitignore", Aliases: []string{"ir"}, Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { if FlagDate == "today" { FlagDate = time.Now().Format("2006-01-02") } CreateIncidentResponseFile( FlagPathPrefix, FlagDate, FlagTitle, FlagAuthor, FlagLevel, ) }, }
View Source
var FlagAuthor string
View Source
var FlagDate string
View Source
var FlagLevel string
View Source
var FlagPathPrefix string
View Source
var FlagTitle string
View Source
var IncidentResponseFileTemplate = `` /* 183-byte string literal not displayed */
View Source
var IndexFileTemplate = `` /* 223-byte string literal not displayed */
Functions ¶
func AppendToIndex ¶
func AppendToIndex(prefix string, tv TemplateVariables)
func CreateIndexFile ¶
func CreateIndexFile(prefix string)
Types ¶
type Index ¶
type Index struct { Version int Incidents []TemplateVariables }
Click to show internal directories.
Click to hide internal directories.