blob: 16eccc445cc2e8b073e7e6d4ff026822edd8b3c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Copyright (C) 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(" "))
}
}
|