mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Have the editor theoretically take filepaths
This commit is contained in:
parent
f0b65a25e2
commit
d7ee713bc5
2 changed files with 31 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue