default-editor

Crates.iodefault-editor
lib.rsdefault-editor
version0.1.0
sourcesrc
created_at2016-11-06 00:03:45.878189
updated_at2016-11-06 00:03:45.878189
descriptionGet the default editor for the current environment
homepagehttps://github.com/LinusU/rust-default-editor
repositoryhttps://github.com/LinusU/rust-default-editor
max_upload_size
id7140
size2,490
Linus Unnebäck (LinusU)

documentation

https://docs.rs/default-editor

README

Default editor

Get the default editor for the current environment

Usage

extern crate default_editor;

fn main () {
    match default_editor::get() {
        Ok(editor) => println!("The default editor is: {}", editor),
        Err(error) => println!("Error getting default editor: {}", error),
    }
}

Commit count: 1

cargo fmt