🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmd-rs

Python's cmd module implemented in Rust via proc macros.

/// A repl that just echos
#[derive(Cmd)]
struct Echoer;

#[cmd_handler]
impl Echoer {
    /// echo message back
    fn do_echo(&mut self, arg: &str) {
        println!("Echo: {}", arg);
    }

    fn postcmd(&self) {
        println!("post command");
    }
}

About

Python's cmd module implemented in Rust via proc macros.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages