// Sprintf generates a shell command with the format arguments escaped.
492341
func Sprintf(format string, a ...interface{}) string {
	wrapped := make([]interface{}, len(a))
	for i, v := range a {
		wrapped[i] = escapable{v}
	}
	return fmt.Sprintf(format, wrapped...)
}
167441
func (e *Encoder) Encodef(format string, a ...interface{}) error {
	return e.EncodeString(
		fmt.Sprintf(format, a...),
	)
}
824924
func Sprintf(format string, a ...interface{}) string {
	return compile(fmt.Sprintf(format, a...))
}
116166
func (ns *Namespace) Errorf(format string, a ...interface{}) string {
	ns.errorLogger.Printf(format, a...)
	return _fmt.Sprintf(format, a...)
}
1038432
func Panicf(format string, v ...interface{}) {
	s := fmt.Sprintf(format, v...)
	_ = std.Output(FATAL, 4, s)
	panic(s)
}
466244
func Fatalf(format string, args ...interface{}) error {
	if IsDebug() {
		panic(fmt.Sprintf(format, args...))
	} else {
		return Errorf(format, args...)
	}
}
84110
func (g *Generator) Printf(format string, args ...interface{}) {
	g.Buf.WriteString(fmt.Sprintf(format, args...))
}
384185
func (logger *Logger) Errorf(format string, args ...interface{}) {
	logger.output(log.Error, fmt.Sprintf(format, args...))
}
1169479
func (l *Logger) Panicf(format string, v ...interface{}) {
	s := fmt.Sprintf(format, v...)
	l.Emit(1, s, nil)
	panic(s)
}
195507
func Wrapf(err error, format string, a ...interface{}) error {
	if err == nil {
		return nil
	}
	return &wrapped{
		err: err,
		msg: fmt.Sprintf(format, a...),
	}
}
1340313
func (s *SyslogLogger) Errorf(format string, v ...interface{}) {
	s.w.Err(fmt.Sprintf(format, v...))
}
964959
func Printf(format string, a ...interface{}) (n int, err error) {
	out := Sprintf(format, a...)
	print(out)
	return len([]byte(out)), nil
}
83238
func (c *Command) Printf(format string, i ...interface{}) {
	c.Print(fmt.Sprintf(format, i...))
}
506464
func Errorf(c codes.Code, format string, a ...interface{}) error {
	return Error(c, fmt.Sprintf(format, a...))
}
684714
func Errorf(ref int, format string, i ...interface{}) error {
	return Error{
		Reference: ref,
		Err:       fmt.Sprintf(format, i...),
	}
}
1348059
func Errorf(name, format string, arg ...interface{}) Error {
	return Error{name, fmt.Sprintf(format, arg...)}
}
896950
func Commandf(format string, a ...interface{}) *exec.Cmd {
	shellCmd := Sprintf(format, a...)
	return exec.Command("/bin/sh", "-c", shellCmd)
}