% for command in sorted(commands):
${user} ALL=(ALL) NOPASSWD: ${command}
% endfor