examplecommand
| plugin-example-command — Served by | plugin-example-command |
| plugin-example-command — Placement | compiled-in (in-process) |
| plugin-example-command — Version | 2026.175.0900 |
| plugin-example-command — Served by | plugin-example-command |
| plugin-example-command — Placement | compiled-in (in-process) |
| plugin-example-command — Version | 2026.175.0900 |
examplecommand is a command word served by 2 plugin candies — plugin-example-command and plugin-example-command — at different points in the command tree. Both are real invocations; charly --help prints which is which.
About plugin-example-command, which serves it
Section titled “About plugin-example-command, which serves it”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.
About plugin-example-command, which serves it
Section titled “About plugin-example-command, which serves it”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.
charly --help prints the command tree, including where each examplecommand is invoked and under which parent.