Patterns: Command-Line Interface Design Patterns¶
Hint
Commands may have modes that fit more than one interface pattern.
Filter pattern¶
stdin –> transform-data –> stdout
Compiler pattern¶
resource-name/file –> process-contents –> transformed-resource-name/file
Note
Any of the patterns listed above can to write to stderr.
There are other patterns, but they are designed for highly interactive environments and outside the scope of this publication.