mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Launch editor when given no CLI args
This commit is contained in:
parent
50357acd55
commit
b0e2134121
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,3 @@
|
||||||
extern crate roc_gen;
|
|
||||||
extern crate roc_reporting;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
use bumpalo::Bump;
|
use bumpalo::Bump;
|
||||||
|
@ -76,6 +74,7 @@ fn main() -> io::Result<()> {
|
||||||
let matches = build_app().get_matches();
|
let matches = build_app().get_matches();
|
||||||
|
|
||||||
match matches.subcommand_name() {
|
match matches.subcommand_name() {
|
||||||
|
None => roc_editor::launch(),
|
||||||
Some("build") => build(matches.subcommand_matches("build").unwrap(), false),
|
Some("build") => build(matches.subcommand_matches("build").unwrap(), false),
|
||||||
Some("run") => build(matches.subcommand_matches("run").unwrap(), true),
|
Some("run") => build(matches.subcommand_matches("run").unwrap(), true),
|
||||||
Some("repl") => repl::main(),
|
Some("repl") => repl::main(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue