Have the editor theoretically take filepaths

This commit is contained in:
Richard Feldman 2020-05-04 21:06:59 -04:00
parent f0b65a25e2
commit d7ee713bc5
2 changed files with 31 additions and 3 deletions

View file

@ -1,7 +1,9 @@
use std::io;
use std::path::Path;
/// The editor is actually launched from the CLI if you pass it zero arguments.
pub fn launch() -> io::Result<()> {
/// The editor is actually launched from the CLI if you pass it zero arguments,
/// or if you provide it 1 or more files or directories to open on launch.
pub fn launch(_filepaths: &[&Path]) -> io::Result<()> {
// TODO do any initialization here
run_event_loop();