mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-05-06 21:48:03 +03:00
readme fix and replacing default prompt with DEFAULT_HOST
This commit is contained in:
parent
3ba2b30008
commit
7f3144be55
@ -4,6 +4,6 @@ better RAC client
|
|||||||
## how to use
|
## how to use
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rustc main.rs -o main # build
|
rustc main.rs # build
|
||||||
./main # run
|
./main # run
|
||||||
```
|
```
|
2
main.rs
2
main.rs
@ -75,7 +75,7 @@ fn get_input(prompt: &str, default: &str) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let host = get_input("Host (default: meex.lol:11234) > ", DEFAULT_HOST);
|
let host = get_input(&format!("Host (default: {}) > ", DEFAULT_HOST), DEFAULT_HOST);
|
||||||
let prefix = get_input("Prefix (default: none) > ", "");
|
let prefix = get_input("Prefix (default: none) > ", "");
|
||||||
|
|
||||||
thread::spawn({
|
thread::spawn({
|
||||||
|
Loading…
Reference in New Issue
Block a user