// ToCmd returns a Cmd object that can be used with the exec package.
ToCmd returns a Cmd object that can be used with the exec package.
// ToCmd returns a Cmd object that can be used with the exec package .
func (c Command) ToCmd(ctx context.Context, data TemplateData) (*exec.Cmd, error) {
	args, err := c.Args(data, TemplateOptions{
		ShowSensitive: true,
	})
	if err != nil {
		return nil, err
	}
	return exec.CommandContext(ctx, c.Name(), args...), nil
}
func ( c Command ) ToCmd ( ctx context . Context , data TemplateData ) ( * exec . Cmd , error ) { args , err := c . Args ( data , TemplateOptions { ShowSensitive : true , } ) if err != nil { return nil , err } return exec . CommandContext ( ctx , c . Name ( ) , args ... ) , nil }
ToCmd returns a Cmd object that can be used with the exec package.
ToCmd returns a Cmd object that can be used with the exec package .
// nolint:gosec