Repository navigation
Parse argparse/kingpin/3-token-prefix listings; add 18 CLIs + ~80 fixtures - #8
Merged
Merged
Conversation
…tures - 'required arguments:' is a known section header (borg argparse) - prefixedEntry handles 3-token prefixes (wrangler d1 migrations) - prefix merge picks the shallowest qualifying depth (1-3) - new captured CLIs: borg, chezmoi, mkdocs, dbt, podman, hugo, rclone, caddy, traefik, restic, velero, promtool, zellij, starship, task, just, volta (+NOTICE licenses) - zola fixture is synthetic (EUPL-1.2 is copyleft) - ~80 nested rows incl. podman image/container/pod/machine/network/ volume/system/secret, doctl databases/registry/compute, argocd cluster/repo/admin/account, pulumi env/state/org, flux bootstrap/ delete, eksctl delete/update/upgrade, minikube service/config/ profile/node, vercel project/dns/certs/git/blob, wrangler queues/ versions/d1 migrations, firebase functions/database/hosting/apps, supabase db/gen/branches/projects, hatch config, pdm cache, meson subprojects, rye self, stripe charges/subscriptions/products, hcloud network/firewall/load-balancer/ssh-key/volume, railway service/ variable, netlify sites, glab stack, promtool tsdb/promql/query, rclone config, velero schedule/snapshot-location/client, hugo mod Co-Authored-By: syumai <syumai@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
18 more CLIs and ~80 new corpus rows — the largest round yet. All new entries parse
ok(orleaf/emptywhere the command genuinely has no subcommand listing).Parser changes in
internal/helptext/parse.go:isSectionHeadernow acceptsrequired arguments:— argparse renders a required-positional group holding subcommand choices under that header (borg-style), so borg's 25 commands parse.prefixedEntryaccepts 3-token prefixes, and the merge step picks the shallowest prefix depth that produced a qualifying group (d=1..3). Sowrangler d1 migrations createcollects underwrangler d1 migrationswithout ever fabricating a top-levelcreate, andyarn config getstill cannot leakgetnext to theyarngroup.New captured CLIs (all permissively licensed, in
NOTICE.md): borg, chezmoi, mkdocs, dbt, podman, hugo, rclone, caddy, traefik, restic, velero, promtool, zellij, starship, task, just, volta. zola ships a synthetic fixture — EUPL-1.2 is copyleft, same treatment as MPL/GPL.New nested rows:
podman image|container|pod|machine|network|volume|system|secret,doctl databases|registry|compute,argocd cluster|repo|admin|account,pulumi env|state|org,flux bootstrap|delete,eksctl delete|update|upgrade,minikube service|config|profile|node,vercel project|dns|certs|git|blob,wrangler queues|versions|d1 migrations,firebase functions|database|hosting|apps,supabase db|gen|branches|projects,hatch config,pdm cache,meson subprojects,rye self,stripe charges|subscriptions|products,hcloud network|firewall|load-balancer|ssh-key|volume,railway service|variable,netlify sites,glab stack,promtool tsdb|promql|query,rclone config,velero schedule|snapshot-location|client,hugo mod|config, plus ~20 leaf fixtures (task,just,restic snapshots,velero install,meson setup|compile|test|dist,pdm install|export|config,rye sync|init|config, etc.).Link to Devin session: https://app.devin.ai/sessions/6b27c26293e1466cb4b3f495d9cf77ea
Open in Devin Desktop: https://app.devin.ai/desktop/session/6b27c26293e1466cb4b3f495d9cf77ea?variant=devin
Requested by: @syumai