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}
@@ 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"
@@ 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,