feat(activity): print the chart and the Days table of an activity command #306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "280_print-activity-chart"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #280. Part of #277.
streamd <key> [RANGE]of an activity command now prints its activity instead ofnot implemented yet.Command line (
commands/activity/cli.rs)RANGEtakes one or more words, joined and parsed with the syntax of #279 (streamd sport last 30 days). Without one it shows the month of today. A wrong range is a usage error (exit 2) that names the forms.--exclude-mixed/--include-mixedoverrideexclude_mixedand conflict with each other.streamd <key> shards [RANGE]lists the matching shards, newest first. It usesargs_conflicts_with_subcommands. clap then readsstreamd sport -i shardsas a range word, so that case gets its own message:`shards` takes no options.-ihands the range and the flags to the view throughViewOptions. The placeholder view keeps them (and shows them in its context line) for #281.Output (
commands/activity/print.rs, pure, golden-tested)all: one strip per calendar year, newest first) and day (the day's shards with time, title, tags andfile:line), chosen byShape.░▒▓█/◩/·/┄/ blank. The series colours are truecolor; today is bold and underlined. Colour is used only on a terminal withoutNO_COLOR(styled_output, moved tocommands/state/style.rsso both commands share it).shards.Core
Stats.series_only_shards: the shards of each series on its days alone, for the shards column of the exclusive table.Docs
R36 (command line, output) and R30 (the flags of
-i), README (usage with the example), AGENTS.md.nix flake checkpasses.streamd <key> [RANGE]prints the chart and the Days table #280