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(" ")) } }