Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Generate shell completions from the binary, with no new dependency

New command-line tools keep arriving as single binaries, and shell completion is the small tax each one pays before it feels installed. Trendshift's weekly view, retrieved 24 November 2026 for the week of 23 to 29 November, lists the experimental google-gemini/gemini-api-cli at 503 stars gained that week. The cli tag on dev.to carried a run of independent tool releases on 22 and 23 November,…

A new command-line tool, broom, provides shell completion without introducing additional dependencies. The experimental google-gemini/gemini-api-cli gained 503 stars in the week of 23 to 29 November 2026, highlighting the trend of small tools being released independently. However, users still need to manually integrate these tools into their shell.

Kolgrim33/broom#5 presents a solution by adding a --completions flag to broom, which generates completion scripts for bash, zsh, and fish shells without increasing the dependency tree. The implementation adds a new ParseOutcome::PrintCompletions(String) variant in src/cli.rs, which prints the generated completion script and returns ExitCode::SUCCESS before running the path validation, scan, or clean code.

The bash, zsh, and fish generators read the shared table of option descriptions and render the data into their respective syntaxes. The generated completion scripts are not committed to the repository, ensuring they remain up-to-date with the parser. The tests enforce that each shell receives the correct flags, values, and ecosystem IDs.

The approach adds 276 lines to the codebase and no dependencies to the build, as confirmed by the verification notes. The main limitation is that hand-written generators require maintenance, which may be a concern for larger CLIs with many flags.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Implement Custom Domain Onboarding: Node.js Add-Zone Reconciliation and Delayed Verify

TL;DR Short answer: add the custom domain, persist its zone, write the record, and schedule verification; choose Infrai for the REST orchestration when discovery and one key reduce integration…

  • Add custom domain and store zone identifier in tenant record.
  • Write DNS record via RESTful interface with atomic operation.
  • Schedule verification step for DNS propagation delay resolution.

Letter Visitors tutorial: spend your 2,000 free tokens like a test budget

Letter Visitors how-to, part 2. Desk-verified against Letter's official pages (letter.dev/visitors, letter.dev/pricing); not hands-on tested.

  • Letter Visitors identifies website visitors with $0.50 per person cost
  • Test budget starts with 2,000 free tokens for 40 visitor identifications
  • Days 3-4 examine first visitors to assess business value

Object Storage Service with Pre-Signed URLs Explained: Node.js Uploads for 3 Tenants

A signed URL is useful only after the application has decided exactly which tenant may write which training artifact, for how long, and under what retention rule.

  • Pre-signed URLs grant temporary, limited access to objects in storage services.
  • Service defines standardized record with tenant, job identifiers, object metadata.
  • Application creates signed upload/download intents using pre-signed URL endpoint.

More from Tuesday 24 November →