From c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d Mon Sep 17 00:00:00 2001 From: Vladislav Stepanov <8uk.8ak@gmail.com> Date: Fri, 14 Apr 2023 23:18:58 +0400 Subject: Workspace reorder (#868) * Try different workspace structure Move main crate (atuin) to be on the same level with other crates in this workspace * extract common dependencies to the workspace definition * fix base64 v0.21 deprecation warning * questionable: update deps & fix chrono deprecations possible panic sites are unchanged, they're just more visible now * Revert "questionable: update deps & fix chrono deprecations" This reverts commit 993e60f8dea81a1625a04285a617959ad09a0866. --- src/main.rs | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 9e570337..00000000 --- a/src/main.rs +++ /dev/null @@ -1,45 +0,0 @@ -#![warn(clippy::pedantic, clippy::nursery)] -#![allow(clippy::use_self, clippy::missing_const_for_fn)] // not 100% reliable - -use clap::Parser; -use eyre::Result; - -use command::AtuinCmd; -mod command; - -#[allow(clippy::all)] -mod ratatui; - -const VERSION: &str = env!("CARGO_PKG_VERSION"); - -static HELP_TEMPLATE: &str = "\ -{before-help}{name} {version} -{author} -{about} - -{usage-heading} - {usage} - -{all-args}{after-help}"; - -/// Magical shell history -#[derive(Parser)] -#[command( - author = "Ellie Huxtable ", - version = VERSION, - help_template(HELP_TEMPLATE), -)] -struct Atuin { - #[command(subcommand)] - atuin: AtuinCmd, -} - -impl Atuin { - fn run(self) -> Result<()> { - self.atuin.run() - } -} - -fn main() -> Result<()> { - Atuin::parse().run() -} -- cgit v1.3.1