Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/cli/binding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl From<JsCommandResolvedResult> for ResolveCommandResult {
}
}

static BUILTIN_COMMANDS: &[&str] = &["lint", "fmt", "build", "test", "doc"];
static BUILTIN_COMMANDS: &[&str] = &["lint", "fmt", "build", "test", "doc", "lib"];

/// Main entry point for the CLI, called from JavaScript.
///
Expand Down Expand Up @@ -270,6 +270,7 @@ fn parse_args() -> Args {
"build" => Commands::Build { args: forwarded_args },
"test" => Commands::Test { args: forwarded_args },
"doc" => Commands::Doc { args: forwarded_args },
"lib" => Commands::Lib { args: forwarded_args },
_ => unreachable!(),
},
debug: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/global/snap-tests/cli-helper-message/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Commands:
lib Lib command, build a library
install Install command. It will be passed to the package manager's install command currently
dev
doc Doc command, build a documentation
doc Doc command, build documentation
cache Manage the task cache
help Print this message or the help of the given subcommand(s)

Expand Down
Loading