fn is_command_valid(command: &str) -> bool {
    match command {
        "setup" => true,
        "status" => true,
        "spend" => true,
        "tip" => true,
        "expense" => true,
        "income" => true,
        "remove" => true,
        "list" => true,
        _ => false
    }
}
/// Check if a command is valid
Check if a command is valid
Check if a command is valid
fn is_command_valid(command: &str) -> bool {
    match command {
        "setup" => true,
        "status" => true,
        "spend" => true,
        "tip" => true,
        "expense" => true,
        "income" => true,
        "remove" => true,
        "list" => true,
        _ => false
    }
}
fn is_command_valid ( command : & str ) -> bool { match command { " " => true , " " => true , " " => true , " " => true , " " => true , " " => true , " " => true , " " => true , _ => false } }
Check if a command is valid
Check if a command is valid
command
&str
command
&str