You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-term/src/main.rs

30 lines
471 B
Rust

#![allow(unused)]
// mod editor;
// mod component;
mod editor;
mod keymap;
4 years ago
use editor::Editor;
4 years ago
use argh::FromArgs;
use std::path::PathBuf;
4 years ago
use anyhow::Error;
4 years ago
#[derive(FromArgs)]
/// A post-modern text editor.
pub struct Args {
#[argh(positional)]
files: Vec<PathBuf>,
4 years ago
}
fn main() -> Result<(), Error> {
let args: Args = argh::from_env();
println!("{:?}", args.files);
4 years ago
let mut editor = editor::Editor::new(args)?;
editor.run();
4 years ago
Ok(())
}