mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-18 07:12:47 +03:00
refactor(cli-rs): drop not_built now that every command is built
mini was the last command stub; the helper was left unused and failed clippy's dead-code check.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//! One module per top-level command. Each step fills its own module (plan 8.4); a stub reports that its command
|
||||
//! is not built yet.
|
||||
//! One module per top-level command. Each step fills its own module (plan 8.4).
|
||||
|
||||
pub mod acp;
|
||||
pub mod api;
|
||||
@@ -55,11 +54,3 @@ pub fn run(context: &Context, cli: &Cli) -> anyhow::Result<()> {
|
||||
Command::Serve(args) => serve::run(context, args),
|
||||
}
|
||||
}
|
||||
|
||||
/// The result of a command whose step has not landed yet.
|
||||
pub fn not_built(command: &str, step: &str) -> anyhow::Result<()> {
|
||||
anyhow::bail!(
|
||||
"`{} {command}` is not built yet (plan step {step})",
|
||||
crate::help::name()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user