mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
fmt
This commit is contained in:
parent
0e3763b91b
commit
f5dc3ac3aa
2 changed files with 13 additions and 8 deletions
|
@ -194,13 +194,15 @@ pub fn build_app<'a>() -> App<'a> {
|
||||||
|
|
||||||
if cfg!(feature = "editor") {
|
if cfg!(feature = "editor") {
|
||||||
app.subcommand(
|
app.subcommand(
|
||||||
App::new(CMD_EDIT).about("Launch the Roc editor (Work In Progress)").arg(
|
App::new(CMD_EDIT)
|
||||||
Arg::new(DIRECTORY_OR_FILES)
|
.about("Launch the Roc editor (Work In Progress)")
|
||||||
.index(1)
|
.arg(
|
||||||
.multiple_values(true)
|
Arg::new(DIRECTORY_OR_FILES)
|
||||||
.required(false)
|
.index(1)
|
||||||
.about("(optional) The directory or files to open on launch."),
|
.multiple_values(true)
|
||||||
),
|
.required(false)
|
||||||
|
.about("(optional) The directory or files to open on launch."),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
app
|
app
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
use roc_cli::build::check_file;
|
use roc_cli::build::check_file;
|
||||||
use roc_cli::{BuildConfig, CMD_BUILD, CMD_CHECK, CMD_DOCS, CMD_EDIT, CMD_REPL, CMD_VERSION, DIRECTORY_OR_FILES, FLAG_TIME, ROC_FILE, build_app, docs, repl};
|
use roc_cli::{
|
||||||
|
build_app, docs, repl, BuildConfig, CMD_BUILD, CMD_CHECK, CMD_DOCS, CMD_EDIT, CMD_REPL,
|
||||||
|
CMD_VERSION, DIRECTORY_OR_FILES, FLAG_TIME, ROC_FILE,
|
||||||
|
};
|
||||||
use roc_load::file::LoadingProblem;
|
use roc_load::file::LoadingProblem;
|
||||||
use std::fs::{self, FileType};
|
use std::fs::{self, FileType};
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue