Skip to content

feat: example CLI uses cyclopts, logging uses loguru - #14

Merged
wolski merged 1 commit into
mainfrom
feat/cyclopts-loguru-example
Oct 19, 2026
Merged

wolski merged 1 commit into
mainfrom
feat/cyclopts-loguru-example

Conversation

@wolski

@wolski wolski commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

FGCZ projects use cyclopts for CLIs and loguru for logging; the reference example used argparse and print.

  • cli.py: cyclopts app with a --verbose flag; the CLI configures the loguru sink, invalid names log an error and exit 1
  • naming.py: emits a debug record, never configures logging
  • tests cover default, verbose and error paths (100% branch coverage)
  • runtime deps cyclopts>=5.2,<6, loguru>=0.7.3,<0.8; AGENTS.md records the convention; README and CHANGELOG updated

Locally: pre-commit and pre-push stages pass; both matrix legs (3.12 lowest-direct, 3.14 highest) pass.

Replace the argparse example with a cyclopts app and show the logging
convention: the library emits loguru records, the CLI configures the sink
(--verbose for debug). Invalid names now log an error and exit 1.
@wolski
wolski merged commit 5ca833b into main Oct 19, 2026
3 checks passed
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