WIP: Implementing desc
use super::args::Args;
use super::index::Index;
use crate::{cmd, Command, Func};
+use crate::cmd::desc::Desc;
+
use ql2::term::TermType;
pub trait Arg {
@@ -13,6 +15,14 @@ impl Arg for Command {
}
}
+
+impl Arg for Desc {
+ fn arg(self) -> cmd::Arg<()> {
+ Command::new(TermType::OrderBy).with_arg(self.0).into_arg()
+ }
+}
+
+
impl<T> Arg for T
where
T: Into<String>,
