plugin-example-command
| Placement | compiled-in (in-process) |
| Source | github.com/opencharly/charly/candy/plugin-example-command |
| Version | 2026.175.0900 |
| Candy | plugin-example-command |
This plugin is listed in charly/charly.yml’s compiled_plugins:, so its providers are compiled into the charly binary and register in-process.
Providers
Section titled “Providers”The reserved words this plugin serves:
examplecommand— command class
What it does
Section titled “What it does”Reference OUT-OF-TREE charly COMMAND-class plugin — a standalone Go module
(go.mod + main.go) contributing the examplecommand command via the charly
plugin SDK (github.com/opencharly/sdk). On charly examplecommand <args…>, charly’s
CLI dispatch (provider_command_external.go dispatchExternalCommand) RESOLVES
this plugin’s binary (host-built from source, or baked into a deployed image)
and syscall.Exec’s it with the pass-through tokens in CLI mode (sdk.Main →
cliMain). The plugin therefore owns real terminal stdio and does ONE
observable, deterministic thing: it PRINTS the joined args to STDOUT, so a test
can assert the command ran, received its args, AND reached a real stdout. The
command-class companion of the verb-class candy/plugin-example-external. The
command class is external-capable: charly prescans examplecommand into the
CLI grammar and fork/execs this binary on a charly examplecommand invocation.
See also the candy reference for this candy’s install surface.