Skip to content

Add colorized CLI output#20

Open
sammmiksha wants to merge 1 commit into
dcondrey:mainfrom
sammmiksha:add-cli-colors
Open

Add colorized CLI output#20
sammmiksha wants to merge 1 commit into
dcondrey:mainfrom
sammmiksha:add-cli-colors

Conversation

@sammmiksha

Copy link
Copy Markdown

Summary

Adds ANSI color formatting to key CLI messages to improve readability.

Colors

  • Green: success messages
  • Yellow: warnings
  • Red: errors
  • Cyan: informational URLs and status messages

Changes

  • Added a small _color() helper and ANSI color constants.
  • Colored startup, dashboard, cookie validation, warning, and error messages.
  • No additional dependencies were added.

Verification

  • Ran location-tracker status
  • Ran location-tracker --help
  • Ran full test suite successfully (51 passed)

@dcondrey

dcondrey commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Nice feature, but ruff format --check fails on spacing (e.g. log.info( _color(...). Run ruff format . and push.

Optional: gate colors on sys.stdout.isatty() so ANSI codes don't leak when output is piped.

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.

2 participants