NAME

Sieve::Generator::Lines::PrettyCommand - a Sieve command statement with arguments aligned across multiple lines

VERSION

version 0.001

DESCRIPTION

A PrettyCommand is like a Sieve::Generator::Lines::Command, but renders its arguments in groups, with each group on its own line and arguments within a group aligned to the column after the command identifier. This is useful for commands with many tagged arguments, such as fileinto.

PERL VERSION

This module is shipped with no promise about what version of perl it will require in the future. In practice, this tends to mean "you need a perl from the last three years," but you can't rely on that. If a new version of perl ship, this software may begin to require it for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

ATTRIBUTES

identifier

This attribute holds the name of the Sieve command.

arg_groups

This attribute holds the list of argument groups. Each group is either an arrayref of arguments (rendered together on one line) or a single argument. Groups are rendered on successive lines, aligned after the command name.

METHODS

args

my @args = $cmd->args;

This method returns the flat list of all arguments, with arrayref groups expanded in place.

AUTHOR

Ricardo Signes <rjbs@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.