I’m working from memory here but I think it would be something like this:
#showtooltip Corruption
/cast [mod:alt]Corruption
/cast [nomod]Corruption
/petattack [nomod]
I believe this should do what you want, although I don’t have a warlock to test it out on.