log-genius 0.1.0

An AI-powered CLI to instantly analyze and explain complex logs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::Parser;
use std::path::PathBuf;

#[derive(Parser, Debug)]
#[command(
    name = "log-genius",
    version,
    about = "Analyzes logs with AI to provide summaries and solutions.",
    long_about = "log-genius is a CLI tool that takes log data from a file or standard input, sends it to the OpenAI API, and provides a concise summary, potential causes, and suggested solutions."
)]
pub struct Cli {
    pub file: Option<PathBuf>,
}