func cmdTags(opts map[string]interface{}, conf config.Config) {

	// load the cheatsheets
	cheatsheets, err := sheets.Load(conf.Cheatpaths)
	if err != nil {
		fmt.Fprintln(os.Stderr, fmt.Sprintf("failed to list cheatsheets: %v", err))
		os.Exit(1)
	}

	// assemble the output
	out := ""
	for _, tag := range sheets.Tags(cheatsheets) {
		out += fmt.Sprintln(tag)
	}

	// display the output
	display.Write(out, conf)
}
// cmdTags lists all tags in use.
cmdTags lists all tags in use.
// cmdTags lists all tags in use .
func cmdTags(opts map[string]interface{}, conf config.Config) {
	cheatsheets, err := sheets.Load(conf.Cheatpaths)
	if err != nil {
		fmt.Fprintln(os.Stderr, fmt.Sprintf("failed to list cheatsheets: %v", err))
		os.Exit(1)
	}
	out := ""
	for _, tag := range sheets.Tags(cheatsheets) {
		out += fmt.Sprintln(tag)
	}
	display.Write(out, conf)
}
func cmdTags ( opts map [ string ] interface { } , conf config . Config ) { cheatsheets , err := sheets . Load ( conf . Cheatpaths ) if err != nil { fmt . Fprintln ( os . Stderr , fmt . Sprintf ( " " , err ) ) os . Exit ( 1 ) } out := " " for _ , tag := range sheets . Tags ( cheatsheets ) { out += fmt . Sprintln ( tag ) } display . Write ( out , conf ) }
cmdTags lists all tags in use.
cmdTags lists all tags in use .
// load the cheatsheets // assemble the output // display the output