workflow_utils/
arglist.rs

1use crate::imports::*;
2
3#[derive(Default)]
4pub struct Arglist {
5    pub args: Vec<String>,
6}
7
8impl Arglist {
9    pub fn push(&mut self, arg: impl Into<String>) {
10        self.args.push(arg.into());
11    }
12}
13
14impl From<Arglist> for Vec<String> {
15    fn from(arglist: Arglist) -> Self {
16        let mut args = AHashSet::new();
17        for arg in arglist.args.into_iter() {
18            args.insert(arg);
19        }
20        args.into_iter().collect()
21    }
22}