<commit_before>#[macro_use]
extern crate clap;
extern crate to;

use to::{ToResult, ToError};
use clap::{App, Arg, ArgGroup};
use std::path::PathBuf;
use std::env;
use std::fs;

fn main() {
    let version = crate_version!();
    let actions = [
        Arg::with_name("get")
            .help("Show bookmark information")
            .long("info")
            .short("i"),

        // to --save,--put # Save current dir as a bookmark
        // to --save,--put foo # Save current directory as bookmark foo
        Arg::with_name("put")
            .help("Save bookmark")
            .long("save")
            .short("s"),

        // to --delete foo # Delete bookmark foo
        Arg::with_name("delete")
            .help("Delete bookmark")
            .long("delete")
            .short("d"),

        Arg::with_name("list")
            .help("List all bookmarks")
            .long("list")
            .short("l"),

        Arg::with_name("last")
            .help("Change current working directory to last")
            .long("last"),
    ];
    let matches = App::new("to")
                    .about("Bookmark directories")
                    .version(version)
                    .author("<NAME> <<EMAIL>>")
                    .arg(Arg::with_name("name")
                        .help("Name of the bookamrk")
                        .index(1))
                    .arg(Arg::with_name("directory")
                        .help("Path of the bookamrk")
                        .index(2))
                    .args(&actions)
                    .get_matches();

    let request = match to::cli::parse_matches(matches) {
        Ok(value) => value,
        Err(err) => panic!(err),
    };

    println!("CLI Request: {:?}", request);
}
<commit_msg>Adds note about next step.<commit_after>#[macro_use]
extern crate clap;
extern crate to;

use to::{ToResult, ToError};
use clap::{App, Arg, ArgGroup};
use std::path::PathBuf;
use std::env;
use std::fs;

fn main() {
    let version = crate_version!();
    let actions = [
        Arg::with_name("get")
            .help("Show bookmark information")
            .long("info")
            .short("i"),

        // to --save,--put # Save current dir as a bookmark
        // to --save,--put foo # Save current directory as bookmark foo
        Arg::with_name("put")
            .help("Save bookmark")
            .long("save")
            .short("s"),

        // to --delete foo # Delete bookmark foo
        Arg::with_name("delete")
            .help("Delete bookmark")
            .long("delete")
            .short("d"),

        Arg::with_name("list")
            .help("List all bookmarks")
            .long("list")
            .short("l"),

        Arg::with_name("last")
            .help("Change current working directory to last")
            .long("last"),
    ];
    let matches = App::new("to")
                    .about("Bookmark directories")
                    .version(version)
                    .author("<NAME> <<EMAIL>>")
                    .arg(Arg::with_name("name")
                        .help("Name of the bookamrk")
                        .index(1))
                    .arg(Arg::with_name("directory")
                        .help("Path of the bookamrk")
                        .index(2))
                    .args(&actions)
                    .get_matches();

    let request = match to::cli::parse_matches(matches) {
        Ok(value) => value,
        Err(err) => panic!(err),
    };

    println!("CLI Request: {:?}", request);

    // NEXT: Store get, put, delete, list
}

{'fraction_non_alphanumeric': 0.15572390572390574, 'fraction_numerical': 0.001122334455667789, 'mean_word_length': 1.535561877667141, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '167465', 'n_tokens_mistral': 1023, 'n_tokens_neox': 975, 'n_words': 236}