~prma/ddd

fd6acee36c4e3c172bbd93a6dfea1002ea161620 — Perma Alesheikh 5 months ago e82f6f1
move ddd binary to its own directory

Signed-off-by: Perma Alesheikh <me@prma.dev>
6 files changed, 8 insertions(+), 8 deletions(-)

M Cargo.toml
R src/{arugments.rs => bin/ddd/arguments.rs}
R src/{commands.rs => bin/ddd/commands.rs}
R src/{config.rs => bin/ddd/config.rs}
R src/{importer.rs => bin/ddd/importer.rs}
R src/{main.rs => bin/ddd/main.rs}
M Cargo.toml => Cargo.toml +1 -1
@@ 14,7 14,7 @@ categories = ["command-line-utilities", "games"]

[[bin]]
name = "ddd"
path = "src/main.rs"
path = "src/bin/ddd/main.rs"

[lib]
path = "src/lib.rs"

R src/arugments.rs => src/bin/ddd/arguments.rs +0 -0
R src/commands.rs => src/bin/ddd/commands.rs +0 -0
R src/config.rs => src/bin/ddd/config.rs +0 -0
R src/importer.rs => src/bin/ddd/importer.rs +0 -0
R src/main.rs => src/bin/ddd/main.rs +7 -7
@@ 1,11 1,11 @@
mod arugments;
mod arguments;
mod commands;
mod config;
mod importer;

use std::env;

use arugments::{Args, Commands, NewCommands};
use arguments::{Args, Commands, NewCommands};
use clap::{CommandFactory, Parser};
use color_eyre::eyre::{Error, OptionExt, Result};
use tracing::{debug, level_filters::LevelFilter};


@@ 56,21 56,21 @@ fn main() -> Result<()> {
                ),
            },
            Commands::List(list_commands) => match list_commands {
                arugments::ListCommands::Nouns => commands::list_nouns(&storage, &storage),
                arguments::ListCommands::Nouns => commands::list_nouns(&storage, &storage),
            },
            Commands::Import(import_commands) => match import_commands {
                arugments::ImportCommands::Nouns { at } => commands::import_nouns(&&storage, at),
                arguments::ImportCommands::Nouns { at } => commands::import_nouns(&&storage, at),
            },
            Commands::Ask(ask_commands) => match ask_commands {
                arugments::AskCommands::Nouns => {
                arguments::AskCommands::Nouns => {
                    commands::ask_next(&storage, &storage, &configs.group)
                }
                arugments::AskCommands::Group => {
                arguments::AskCommands::Group => {
                    commands::group_ask(&&storage, &&storage, &configs.group)
                }
            },
            Commands::Edit(edit_commands) => match edit_commands {
                arugments::EditCommands::Noun {
                arguments::EditCommands::Noun {
                    articles,
                    word,
                    meaning,