Skip to content

Commit

Permalink
Remove subcommand, not currently used
Browse files Browse the repository at this point in the history
Now we use other arguments to change engines, models, and prompts
  • Loading branch information
awwaiid committed Dec 19, 2024
1 parent 9f83b5d commit e500f99
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::{Arc, Mutex};

use serde_json::Value as json;

use clap::{Parser, Subcommand};
use clap::Parser;

use base64::prelude::*;

Expand Down Expand Up @@ -82,23 +82,13 @@ struct Args {
/// Apply segmentation
#[arg(long)]
apply_segmentation: bool,

#[command(subcommand)]
command: Option<Command>,
}

#[derive(Subcommand)]
enum Command {
TextAssist,
}

fn main() -> Result<()> {
dotenv().ok();
let args = Args::parse();

match &args.command {
Some(Command::TextAssist) | None => ghostwriter(&args),
}
ghostwriter(&args)
}

fn draw_text(text: &str, keyboard: &mut Keyboard) -> Result<()> {
Expand Down

0 comments on commit e500f99

Please sign in to comment.