chore: Disable unimplemented commands

This commit is contained in:
Lucas Schwiderski 2022-12-10 12:43:06 +01:00
parent 4a834b1687
commit 87bfcf68cb
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
4 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ use clap::{value_parser, Arg, ArgMatches, Command};
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use tokio::sync::RwLock; use tokio::sync::RwLock;
pub(crate) fn command_definition() -> Command { pub(crate) fn _command_definition() -> Command {
Command::new("build").about("Build a project").arg( Command::new("build").about("Build a project").arg(
Arg::new("directory") Arg::new("directory")
.required(false) .required(false)

View file

@ -4,7 +4,7 @@ use clap::{Arg, ArgMatches, Command};
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use tokio::sync::RwLock; use tokio::sync::RwLock;
pub(crate) fn command_definition() -> Command { pub(crate) fn _command_definition() -> Command {
Command::new("new") Command::new("new")
.about("Create a new project") .about("Create a new project")
.arg(Arg::new("name").help( .arg(Arg::new("name").help(

View file

@ -5,7 +5,7 @@ use clap::{value_parser, Arg, ArgMatches, Command};
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use tokio::sync::RwLock; use tokio::sync::RwLock;
pub(crate) fn command_definition() -> Command { pub(crate) fn _command_definition() -> Command {
Command::new("watch") Command::new("watch")
.about("Re-build the given directory on file changes.") .about("Re-build the given directory on file changes.")
.arg( .arg(

View file

@ -43,12 +43,12 @@ async fn main() -> Result<()> {
.global(true) .global(true)
.value_parser(value_parser!(PathBuf)), .value_parser(value_parser!(PathBuf)),
) )
.subcommand(cmd::build::command_definition()) // .subcommand(cmd::build::command_definition())
.subcommand(cmd::bundle::command_definition()) .subcommand(cmd::bundle::command_definition())
.subcommand(cmd::dictionary::command_definition()) .subcommand(cmd::dictionary::command_definition())
.subcommand(cmd::murmur::command_definition()) .subcommand(cmd::murmur::command_definition())
.subcommand(cmd::new::command_definition()) // .subcommand(cmd::new::command_definition())
.subcommand(cmd::watch::command_definition()) // .subcommand(cmd::watch::command_definition())
.get_matches(); .get_matches();
{ {