blob: 4603d3794d1df652f4139683e9499bda72d1f0dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only
pub struct Command {
pub keyword: String,
pub args: Vec<String>,
}
impl Command {
pub fn to_line(&self) -> String { format!("{} {}", self.keyword, self.args.join(" ")) }
}
|