Skip to content

0.0.5: snapshot(app) is exported, as docs/api.md states - #12

Merged
Sunrisepeak merged 1 commit into
mainfrom
snapshot-export
Nov 20, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
snapshot-export

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

docs/api.md names snapshot(app) as the function that builds the completions::Command tree, but the module did not export it: an importer could reach the tree only through a completion script's text.

  • snapshot(const App&) is declared export ahead of App; its definition is unchanged.
  • A test walks the tree of an application with a global option and a nested subcommand.
  • docs/api.md states that the function is exported from 0.0.5.

mcpp lists its own commands and options from this tree (mcpp emit surface, mcpp#984).

The command tree that completion generation walks is reachable from an importer:
a tool lists its own commands and options from the definition it parses with,
instead of from a completion script's text.
@Sunrisepeak
Sunrisepeak merged commit 87193ee into main Nov 20, 2026
1 check passed
@Sunrisepeak
Sunrisepeak deleted the snapshot-export branch November 20, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant