Skip to main content

Crate kasl

Crate kasl 

Source
Expand description

§Kasl - Key Activity Synchronization and Logging

A command-line utility for tracking work activities, managing tasks, and generating productivity reports.

§Usage

use kasl::commands::Cli;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    Cli::menu().await
}

Modules§

api
External API clients (GitLab, Jira, SiServer, kasl-server) and the shared session-management pattern most of them implement.
commands
Command-line interface commands for kasl application.
db
SQLite persistence layer: one module per entity, migrations on open.
libs
Core library modules for the kasl application.

Macros§

msg_bail_anyhow
return Err(...) with the message, ❌-prefixed.
msg_debug
Logs the message with the 🔍 prefix in debug mode; silent otherwise.
msg_error
Prints the message with the ❌ prefix - to stderr outside debug mode, so errors stay separable from data in pipes.
msg_error_anyhow
Builds an anyhow::Error from the message, ❌-prefixed.
msg_info
Prints the message with the ℹ️ prefix.
msg_print
Prints the message with no prefix.
msg_success
Prints the message with the ✅ prefix.
msg_warning
Prints the message with the ⚠️ prefix.

Functions§

run
Runs the CLI: the shared entry point behind both the kasl and ka binaries.