Skip to content

fix: line up the columns in the two messages that offer a way out - #72

Merged
vyncint merged 1 commit into
mainfrom
ux/0.6.3-messages
Aug 24, 2026
Merged

fix: line up the columns in the two messages that offer a way out#72
vyncint merged 1 commit into
mainfrom
ux/0.6.3-messages

Conversation

@vyncint

@vyncint vyncint commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Both are first-run paths — what somebody reads when mossaic has just refused to do what they asked.

could not detect a GitHub user had one of its three suggestions two columns out of line, and listed --demo last. That is the only one of the three needing no account, no network and no decision, so it now comes second, right after charting someone by name.

  mossaic <username>  chart someone by name
  mossaic --demo      see what it looks like first
  gh auth login       authenticate, then just `mossaic`

The missing-file message is one I added earlier today, and it tried to align a column against an interpolated path — which cannot work, since the path is however long the reader typed. It also echoed the path back inside the suggestion, where it was noise. FILE says the shape of the command and lines up:

mossaic: no calendar file at /some/typo.json

  mossaic-art TEXT --snapshot FILE   write one
  mossaic --demo                     a sample year instead

Folded into the [0.6.3] changelog section, which is not tagged yet.

Checklist

  • Tests added/updated — covered by tests/chart_cli.rs, which asserts the message names the file and offers both routes; 213 tests pass
  • cargo fmt --all and cargo clippy --workspace --all-targets --all-features are clean
  • All commits are signed off
  • No AI attribution trailers
  • CHANGELOG.md updated
  • No snapshot changes

Both are first-run paths, and both are what somebody reads when mossaic
has just refused to do the thing they asked for.

`could not detect a GitHub user` listed three ways forward with one of
them two columns out of line, and put `--demo` last — the only one of the
three that needs no account, no network and no decision, which makes it
the one to lead with.

The missing-file message was mine, from an hour ago, and it tried to
align a column against an interpolated path. That cannot work: the path
is however long the reader typed. It also repeated the path back inside
the suggestion, where it was noise — they know what they typed; what
they need is the shape of the command. `FILE` says that and lines up.

Signed-off-by: Vyncint Ng <115854244+vyncint@users.noreply.github.com>
@vyncint
vyncint merged commit a992363 into main Aug 24, 2026
11 checks passed
@vyncint
vyncint deleted the ux/0.6.3-messages branch August 24, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant