summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAge
* Add the stdio backendRobin Krahl2019-01-11
| | | | | | | This patch adds the stdio backend which acts as a fallback backend and uses standard input and output. For password queries, the rpassword crate is used to suppress output. Also, default_backend is changed to return Stdio if Dialog is not available.
* Implement zenity backendRobin Krahl2019-01-08
|
* Add the Password dialog boxRobin Krahl2019-01-08
|
* Refactor io::Error into custom Error enumRobin Krahl2019-01-08
|
* Add question dialog boxesRobin Krahl2019-01-08
|
* Add input dialog boxesRobin Krahl2019-01-08
| | | | | | This patch implements input dialog boxes. This required some refactoring in the dialog backend to allow additional arguments after the width and the height.
* Move tests/ to examples/Robin Krahl2019-01-08
So far it is hard to write unit tests for this crate as we don’t have much logic. The existing tests are usage examples, therefore they are moved to the examples directory. They can be run with `cargo run --example <name>`.