summaryrefslogtreecommitdiffstats
path: root/src/poem/elements/stanza.rs
blob: d58d080c29c15e473c571f93b824759f5654f3fc (plain)
1
2
3
4
5
6
7
8
9
10
/// The actionable part of a [Verse][super::verse::Verse]
///
/// Each [Stanza] has two parts, a `verb()` and a `clause()`. The `verb()` is
/// the program, or path to the program to call, while the `clause()` contains
/// arguments to pass to that program.
///
/// The [Stanza] is just stored as a [Vec] of [String]s, where the verb is the
/// first entry in the vector (i.e. `stanza[0]`) and the clause the the
/// remainder of the vector (i.e. `stanza[1..]`).
pub type Stanza = Vec<String>;