<commit_before>use clap::{Arg, App, ArgGroup, SubCommand};

pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
    app
        .subcommand(SubCommand::with_name("tw-hook")
                    .about("For use in a taskwarrior hook")
                    .version("0.1")

                    .arg(Arg::with_name("add")
                         .long("add")
                         .short("a")
                         .takes_value(false)
                         .required(false)
                         .help("For use in an on-add hook"))

                    .arg(Arg::with_name("delete")
                         .long("delete")
                         .short("d")
                         .takes_value(false)
                         .required(false)
                         .help("For use in an on-delete hook"))

                    .group(ArgGroup::with_name("taskwarrior hooks")
                           .args(&[ "add",
                                 "delete",
                           ])
                           .required(true))
                    )

                    .subcommand(SubCommand::with_name("add")
                                .about("create a task")
                                .version("0.1")

                                .arg(Arg::with_name("description")
                                     .long("description")
                                     .short("d")
                                     .takes_value(true)
                                     .required(true)
                                     .help("Name/Description of the new task")
                                    )

                                .arg(Arg::with_name("priority")
                                     .long("priority")
                                     .short("p")
                                     .takes_value(true)
                                     .required(false)
                                     .help("One of l, m, h for low, medium and high priority")
                                    )

                                .arg(Arg::with_name("project")
                                     .long("project")
                                     .takes_value(true)
                                     .required(false)
                                     .help("Name of the project the task is related to")
                                    )

                                .arg(Arg::with_name("due")
                                     .long("due")
                                     .takes_value(true)
                                     .required(false)
                                     .help("Due date of the new task")
                                    )

                                .arg(Arg::with_name("frequency")
                                     .long("frequency")
                                     .short("f")
                                     .takes_value(true)
                                     .required(false)
                                     .help("Frequency of the recurrence of a task")
                                    )
                                )

                    .subcommand(SubCommand::with_name("list")
                                .about("List all tasks")
                                .version("0.1")

                                .arg(Arg::with_name("verbose")
                                     .long("verbose")
                                     .short("v")
                                     .takes_value(false)
                                     .required(false)
                                     .help("Asks taskwarrior for all the details")
                                    )
                               )
}<commit_msg>Rip out ui setup for "add" subcommand<commit_after>use clap::{Arg, App, ArgGroup, SubCommand};

pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
    app
        .subcommand(SubCommand::with_name("tw-hook")
                    .about("For use in a taskwarrior hook")
                    .version("0.1")

                    .arg(Arg::with_name("add")
                         .long("add")
                         .short("a")
                         .takes_value(false)
                         .required(false)
                         .help("For use in an on-add hook"))

                    .arg(Arg::with_name("delete")
                         .long("delete")
                         .short("d")
                         .takes_value(false)
                         .required(false)
                         .help("For use in an on-delete hook"))

                    .group(ArgGroup::with_name("taskwarrior hooks")
                           .args(&[ "add",
                                 "delete",
                           ])
                           .required(true))
                    )

                    .subcommand(SubCommand::with_name("list")
                                .about("List all tasks")
                                .version("0.1")

                                .arg(Arg::with_name("verbose")
                                     .long("verbose")
                                     .short("v")
                                     .takes_value(false)
                                     .required(false)
                                     .help("Asks taskwarrior for all the details")
                                    )
                               )
}
{'fraction_non_alphanumeric': 0.09858130229174245, 'fraction_numerical': 0.0018188432157148053, 'mean_word_length': 0.6302994367032315, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 42, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6675719', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1117, 'n_words': 202}