mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
implement command root
This commit is contained in:
parent
c1ed7487d7
commit
15ffd16c01
11 changed files with 107 additions and 170 deletions
|
|
@ -4,6 +4,16 @@ use command_parser::Tree;
|
|||
use commands::COMMAND_TREE;
|
||||
|
||||
fn main() {
|
||||
parse();
|
||||
}
|
||||
|
||||
fn related() {
|
||||
let cmd = std::env::args().nth(1).unwrap();
|
||||
let related = commands::get_related_commands("pk;".to_string(), cmd);
|
||||
println!("Related commands:\n{related}");
|
||||
}
|
||||
|
||||
fn parse() {
|
||||
let cmd = std::env::args()
|
||||
.skip(1)
|
||||
.intersperse(" ".to_string())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue