fix: install color_eyre error handler in main
Some checks failed
Test / build (map[name:nightly]) (push) Successful in 1m40s
Test / build (map[name:stable]) (push) Successful in 2m4s
Release Please / Release-plz (push) Failing after 16s

This puts it outside of any tests, as running this in parallel will
panic.
This commit is contained in:
Paul Campbell 2024-12-16 07:12:05 +00:00
parent 7af4dae96d
commit 6fe7be191f
2 changed files with 1 additions and 2 deletions

View file

@ -96,8 +96,6 @@ impl FullCtx {
#[cfg_attr(test, mutants::skip)]
pub async fn run(ctx: &Ctx) -> color_eyre::Result<()> {
color_eyre::install()?;
let commands = Commands::parse();
if commands.log {
tracing::subscriber::set_global_default(

View file

@ -6,5 +6,6 @@ use trello_to_deck::{run, Ctx};
#[tokio::main]
#[cfg_attr(test, mutants::skip)]
async fn main() -> Result<()> {
color_eyre::install()?;
run(&Ctx::from(std::env::current_dir()?)).await
}