Skip to content

LilCloudCoder/RustInput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluent Input 🦀

Simple, fluent input for Rust CLI apps; easier to use unlike the standart std::io.


Usage

use input::input;

fn main() {
    let a: i32 = input("Enter i32: ").int();
    let b: f64 = input("Enter f64: ").float();
    let name = input("Enter name: ").string();
    let agree = input("Agree? ").bool();

    println!("{} {} {} {}", a, b, name, agree);
}

Types Supported:

  • Integers: * (signed/unsigned)
  • Floats: * (32/64)
  • Bool/Str

About

Simple, fluent input for Rust CLI apps; easier to use unlike the standart `std::io`.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages