dtmt/src/bin/cmd/build.rs

24 lines
690 B
Rust

use std::{path::PathBuf, sync::Arc};
use clap::{value_parser, Arg, ArgMatches, Command};
use color_eyre::eyre::Result;
use dtmt::Context;
pub(crate) fn command_definition() -> Command {
Command::new("build").about("Build a project").arg(
Arg::new("directory")
.required(false)
.default_value(".")
.value_parser(value_parser!(PathBuf))
.help(
"The path to the project to build. \
If omitted, the current working directory is used.",
),
)
}
#[tracing::instrument(skip_all)]
pub(crate) async fn run(_ctx: Arc<Context>, _matches: &ArgMatches) -> Result<()> {
unimplemented!()
}