Add the AirDef tablet web panel and battle archive (#153)
This commit is contained in:
@@ -115,6 +115,14 @@ pub fn tree() -> Tree {
|
||||
])),
|
||||
Node::lit("recon").runs(),
|
||||
Node::lit("post").runs().then(Node::arg("поиск", Value::word()).runs()),
|
||||
Node::lit("panel").with([
|
||||
Node::lit("snapshot").then(Node::arg("запрос", Value::word()).then(
|
||||
Node::arg("ракурс", Value::choice(["public", "debug"])).then(Node::arg("позиция", Value::word()).runs())
|
||||
)),
|
||||
Node::lit("launch").then(Node::arg("запрос", Value::word()).then(
|
||||
Node::arg("сессия", Value::word()).then(Node::arg("сценарий", Value::word()).runs())
|
||||
)),
|
||||
]),
|
||||
Node::lit("stats").runs(),
|
||||
])
|
||||
}
|
||||
@@ -255,7 +263,7 @@ mod tests {
|
||||
assert!(top.contains(&w.to_string()), "{w} in {top:?}");
|
||||
}
|
||||
assert!(top.contains(&"post".to_string()));
|
||||
assert_eq!(top.len(), 39);
|
||||
assert_eq!(top.len(), 40);
|
||||
assert_eq!(complete("rep", &[]), ["repair", "replay"]);
|
||||
assert_eq!(complete("replay ", &[]), ["export", "film", "full", "map", "reel", "stop"]);
|
||||
assert_eq!(complete("replay film ", &[]), ["all", "best"]);
|
||||
|
||||
Reference in New Issue
Block a user