Skip to content

refactor: flagbind batch helpers and convention sweep#64

Merged
josealekhine merged 4 commits intomainfrom
feature/ctx-hub-next
Apr 12, 2026
Merged

refactor: flagbind batch helpers and convention sweep#64
josealekhine merged 4 commits intomainfrom
feature/ctx-hub-next

Conversation

@josealekhine
Copy link
Copy Markdown
Member

refactor: flagbind batch helpers and convention sweep

Add parallel-slice batch functions to flagbind (BindStringFlagsP,
BindStringFlags, BindBoolFlags, BindBoolFlagsP, BindStringFlagShorts,
BindStringFlagsPDefault) replacing repetitive one-at-a-time flag
registrations across 8 CLI command files.

Convention sweep:

  • hub: rename files (entry_validate→validate_entry, errcheck→err_check),
    remove const aliases, move magic numbers to config/hub and config/entry,
    fix predicate naming (isEOF→eof, isAuthErr→authErr)
  • initialize: rename claudecheck→claude_check, details→detail
  • steering/types: align docstrings with conventions
  • compliance: fix TestNoSecretsInTemplates false positive on YAML keys
  • golangci: extend G101 exclusion to all embed/text/ DescKey files
  • sysinfo: add missing nolint:gosec for G204 on vm_stat

Spec: specs/flagbind-batch-and-convention-sweep.md
Signed-off-by: Jose Alekhinne jose@ctx.ist

Signed-off-by: Jose Alekhinne <jose@ctx.ist>
Signed-off-by: Jose Alekhinne <jose@ctx.ist>
Add parallel-slice batch functions to flagbind (BindStringFlagsP,
BindStringFlags, BindBoolFlags, BindBoolFlagsP, BindStringFlagShorts,
BindStringFlagsPDefault) replacing repetitive one-at-a-time flag
registrations across 8 CLI command files.

Convention sweep:
- hub: rename files (entry_validate→validate_entry, errcheck→err_check),
remove const aliases, move magic numbers to config/hub and config/entry,
fix predicate naming (isEOF→eof, isAuthErr→authErr)
- initialize: rename claudecheck→claude_check, details→detail
- steering/types: align docstrings with conventions
- compliance: fix TestNoSecretsInTemplates false positive on YAML keys
- golangci: extend G101 exclusion to all embed/text/ DescKey files
- sysinfo: add missing nolint:gosec for G204 on vm_stat

Spec: specs/flagbind-batch-and-convention-sweep.md
Signed-off-by: Jose Alekhinne <jose@ctx.ist>
@josealekhine josealekhine requested a review from bilersan as a code owner April 12, 2026 17:47
…arser rescue

The dead exports test maintained a manual list of platform-specific
symbols (linux-only, darwin-only) that appeared dead on the other OS.
This list grew with every new platform constant and taught bad habits.

Replace with a go/parser sweep that parses ALL .go files regardless
of build tags, extracts selector names, and automatically rescues
any export referenced from any platform file. No manual maintenance.

Spec: specs/flagbind-batch-and-convention-sweep.md
Signed-off-by: Jose Alekhinne <jose@ctx.ist>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 12, 2026

Deploying ctx with  Cloudflare Pages  Cloudflare Pages

Latest commit: 970cdd0
Status: ✅  Deploy successful!
Preview URL: https://08e54d74.ctx-bhl.pages.dev
Branch Preview URL: https://feature-ctx-hub-next.ctx-bhl.pages.dev

View logs

@josealekhine josealekhine merged commit 2ff53c5 into main Apr 12, 2026
12 checks passed
@josealekhine josealekhine deleted the feature/ctx-hub-next branch April 12, 2026 18:12
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