rest25/library/pipes.rst => rest262/library/pipes.rst
36.. _template-objects:
37
38Template Objects
39----------------
40
41Template objects following methods:
42
43
n44-.. method:: XXX Class.reset()
n44+.. method:: Template.reset()
45
46   Restore a pipeline template to its initial state.
47
48
n49-.. method:: XXX Class.clone()
n49+.. method:: Template.clone()
50
51   Return a new, equivalent, pipeline template.
52
53
n54-.. method:: XXX Class.debug(flag)
n54+.. method:: Template.debug(flag)
55
56   If *flag* is true, turn debugging on. Otherwise, turn debugging off. When
57   debugging is on, commands to be executed are printed, and the shell is given
58   ``set -x`` command to be more verbose.
59
60
n61-.. method:: XXX Class.append(cmd, kind)
n61+.. method:: Template.append(cmd, kind)
62
63   Append a new action at the end. The *cmd* variable must be a valid bourne shell
64   command. The *kind* variable consists of two letters.
65
66   The first letter can be either of ``'-'`` (which means the command reads its
67   standard input), ``'f'`` (which means the commands reads a given file on the
68   command line) or ``'.'`` (which means the commands reads no input, and hence
69   must be first.)
70
71   Similarly, the second letter can be either of ``'-'`` (which means  the command
72   writes to standard output), ``'f'`` (which means the  command writes a file on
73   the command line) or ``'.'`` (which means the command does not write anything,
74   and hence must be last.)
75
76
n77-.. method:: XXX Class.prepend(cmd, kind)
n77+.. method:: Template.prepend(cmd, kind)
78
79   Add a new action at the beginning. See :meth:`append` for explanations of the
80   arguments.
81
82
n83-.. method:: XXX Class.open(file, mode)
n83+.. method:: Template.open(file, mode)
84
85   Return a file-like object, open to *file*, but read from or written to by the
86   pipeline.  Note that only one of ``'r'``, ``'w'`` may be given.
87
88
t89-.. method:: XXX Class.copy(infile, outfile)
t89+.. method:: Template.copy(infile, outfile)
90
91   Copy *infile* to *outfile* through the pipe.
92
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op