func (a *journalArgs) Args() []string {
	args := []string{
		"--utc",
		"--no-pager",
	}
	if len(a.Since) > 0 {
		args = append(args, "--since="+a.Since)
	}
	if len(a.Until) > 0 {
		args = append(args, "--until="+a.Until)
	}
	if a.Tail > 0 {
		args = append(args, "--pager-end", fmt.Sprintf("--lines=%d", a.Tail))
	}
	if len(a.Format) > 0 {
		args = append(args, "--output="+a.Format)
	}
	for _, unit := range a.Units {
		if len(unit) > 0 {
			args = append(args, "--unit="+unit)
		}
	}
	if len(a.Pattern) > 0 {
		args = append(args, "--grep="+a.Pattern)
		args = append(args, fmt.Sprintf("--case-sensitive=%t", a.CaseSensitive))
	}
	return args
}
// Args returns the journalctl arguments for the given args.
Args returns the journalctl arguments for the given args.
// Args returns the journalctl arguments for the given args .
func (a *journalArgs) Args() []string {
	args := []string{
		"--utc",
		"--no-pager",
	}
	if len(a.Since) > 0 {
		args = append(args, "--since="+a.Since)
	}
	if len(a.Until) > 0 {
		args = append(args, "--until="+a.Until)
	}
	if a.Tail > 0 {
		args = append(args, "--pager-end", fmt.Sprintf("--lines=%d", a.Tail))
	}
	if len(a.Format) > 0 {
		args = append(args, "--output="+a.Format)
	}
	for _, unit := range a.Units {
		if len(unit) > 0 {
			args = append(args, "--unit="+unit)
		}
	}
	if len(a.Pattern) > 0 {
		args = append(args, "--grep="+a.Pattern)
		args = append(args, fmt.Sprintf("--case-sensitive=%t", a.CaseSensitive))
	}
	return args
}
func ( a * journalArgs ) Args ( ) [ ] string { args := [ ] string { " " , " " , } if len ( a . Since ) > 0 { args = append ( args , " " + a . Since ) } if len ( a . Until ) > 0 { args = append ( args , " " + a . Until ) } if a . Tail > 0 { args = append ( args , " " , fmt . Sprintf ( " " , a . Tail ) ) } if len ( a . Format ) > 0 { args = append ( args , " " + a . Format ) } for _ , unit := range a . Units { if len ( unit ) > 0 { args = append ( args , " " + unit ) } } if len ( a . Pattern ) > 0 { args = append ( args , " " + a . Pattern ) args = append ( args , fmt . Sprintf ( " " , a . CaseSensitive ) ) } return args }
Args returns the journalctl arguments for the given args.
Args returns the journalctl arguments for the given args .