Feature: dynamic command discovery for JSON-RPC and enhanced testing
Some checks failed
Smoke tests / Build and smoke test (push) Failing after 1m2s
Some checks failed
Smoke tests / Build and smoke test (push) Failing after 1m2s
This commit is contained in:
@@ -157,6 +157,15 @@ pub async fn execute(
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_command_list() -> Vec<&'static str> {
|
||||
vec![
|
||||
"look", "go", "north", "south", "east", "west", "up", "down",
|
||||
"say", "who", "take", "drop", "inventory", "equip", "use",
|
||||
"examine", "talk", "attack", "defend", "flee", "cast",
|
||||
"spells", "skills", "guild", "stats", "help", "shop",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
fn send(session: &mut Session, channel: ChannelId, text: &str) -> Result<(), russh::Error> {
|
||||
session.data(channel, CryptoVec::from(text.as_bytes()))?;
|
||||
|
||||
Reference in New Issue
Block a user