Skip to content

Commit

Permalink
updates name and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Jul 21, 2017
1 parent 334978d commit 320cdd8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]

name = "rpassword"
version = "0.4.0"
version = "0.4.1"
authors = ["Conrad Kleinespel <conradk@conradk.com>"]
description = "Read passwords in console applications."
license = "Apache-2.0"
homepage = "https://github.com/conradkleinespel/rustastic-password"
repository = "https://github.com/conradkleinespel/rustastic-password"
homepage = "https://github.com/conradkleinespel/rpassword"
repository = "https://github.com/conradkleinespel/rpassword"
documentation = "https://docs.rs/rpassword/"
readme = "README.md"
keywords = ["read", "password", "security", "pass", "getpass"]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rustastic Password

[![Build Status](https://travis-ci.org/conradkdotcom/rustastic-password.svg?branch=master)](https://travis-ci.org/conradkdotcom/rustastic-password)
[![Build status](https://ci.appveyor.com/api/projects/status/6pfyblvyhaqo8lmh?svg=true)](https://ci.appveyor.com/project/conradkdotcom/rustastic-password)
[![Build Status](https://travis-ci.org/conradkdotcom/rpassword.svg?branch=master)](https://travis-ci.org/conradkdotcom/rpassword)
[![Build status](https://ci.appveyor.com/api/projects/status/6pfyblvyhaqo8lmh?svg=true)](https://ci.appveyor.com/project/conradkdotcom/rpassword)

This [Rust](http://www.rust-lang.org/) package allows you to safely read
passwords from standard input in a console application.
Expand Down Expand Up @@ -44,7 +44,7 @@ Check [examples/example.rs](examples/example.rs) for a few more examples.

We welcome contribution from everyone. Feel free to open an issue or a pull request at any time.

Check out the [unassigned issues](https://github.com/conradkdotcom/rustastic-password/issues?q=is%3Aissue+is%3Aopen+label%3Aunassigned) to get started. If you have any questions, just let us know and we'll jump in to help.
Check out the [unassigned issues](https://github.com/conradkdotcom/rpassword/issues?q=is%3Aissue+is%3Aopen+label%3Aunassigned) to get started. If you have any questions, just let us know and we'll jump in to help.

Here's a list of existing `rpassword` contributors:

Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ environment:
- TARGET: x86_64-pc-windows-gnu
- TARGET: i686-pc-windows-gnu
install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-1.11.0-${env:TARGET}.exe"
- rust-1.11.0-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-1.19.0-${env:TARGET}.exe"
- rust-1.19.0-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- SET PATH=%PATH%;C:\MinGW\bin
- rustc -V
Expand Down
16 changes: 8 additions & 8 deletions examples/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use std::io::{stdout, Write};
fn main() {
let mut stdout = stdout();

print!("Password: ");
stdout.flush().unwrap();
// Password without prompt
let pass = rpassword::read_password().unwrap();
println!("Your password is {}", pass);

Expand All @@ -16,12 +15,13 @@ fn main() {
let pass = rpassword::prompt_password_stderr("Password with prompt on stderr: ").unwrap();
println!("Your password is {}", pass);

let response = rpassword::read_response().unwrap();
println!("Your response is {}", response);
// Password (displayed, not hidden) without prompt
let pass = rpassword::read_response().unwrap();
println!("Your password is {}", pass);

let response = rpassword::prompt_response_stdout("Response with prompt on stdout: ").unwrap();
println!("Your response is {}", response);
let pass = rpassword::prompt_response_stdout("Password (displayed, not hidden) with prompt on stdout: ").unwrap();
println!("Your password is {}", pass);

let response = rpassword::prompt_response_stderr("Response with prompt on stderr: ").unwrap();
println!("Your response is {}", response);
let pass = rpassword::prompt_response_stderr("Password (displayed, not hidden) with prompt on stderr: ").unwrap();
println!("Your password is {}", pass);
}

0 comments on commit 320cdd8

Please sign in to comment.