Skip to content

feat: implements cuid_wrapper with functools.partial and overhauls CLI UX - #72

Merged
wgordon17 merged 6 commits into
mainfrom
feat/cuid-wrapper-and-cli-ux
Oct 30, 2026
Merged

wgordon17 merged 6 commits into
mainfrom
feat/cuid-wrapper-and-cli-ux

Conversation

@wgordon17

@wgordon17 wgordon17 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Un-deprecates cuid_wrapper() and returns functools.partial(create_id, length=length) so custom-length wrappers are picklable and serializable by Django migrations
  • Overhauls the cuid2 CLI with -V/-v/--version, -h/--help, -l/--length, --slug, -n/-c/--count, -f/--fingerprint, --check/--validate (-q/--quiet and stdin -), and exit-2 argument validation
  • Adds python -m cuid2 module execution via src/cuid2/main.py and updates release archive allowlists, tests, and documentation

@wgordon17
wgordon17 force-pushed the feat/cuid-wrapper-and-cli-ux branch from 39a3099 to a11795a Compare October 30, 2026 00:07
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@wgordon17
wgordon17 marked this pull request as ready for review October 30, 2026 13:46
@wgordon17
wgordon17 requested a review from a team October 30, 2026 13:46
@wgordon17
wgordon17 merged commit 57e0d3b into main Oct 30, 2026
22 checks passed
@wgordon17
wgordon17 deleted the feat/cuid-wrapper-and-cli-ux branch October 30, 2026 13:46
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