default-editor 0.1.0

Get the default editor for the current environment
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 172.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • LinusU/rust-default-editor
    2 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LinusU

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),
    }
}