Skip to content

Extending the embedded documentation #440

@nickheyer

Description

@nickheyer

Feature Description

I feel as though I have now read through every issue (current and closed), as well as every doc available to me. I honestly believe that the ability to embed this runtime/dsl into Rust is undervalued relative to the amount of supporting documentation. There isn't really a whole lot of offerings in this category, and you've made something really great - which is why it should capitalize on comprehensive documentation and rust extensibility.

That being said, my actual need for this documentation is to essentially do one "simple" (from my uninformed perspective) thing. I'd like a method or buffer I can tap into containing the stdout of the runner::run_script* methods.

For example: If I echo "Hello, World!", it is printed to my terminal. I'd like to use the Hello, World! dynamically within Rust application that executed the duckscript. A good use case would be redirecting output to a log, or via a websocket connection to a webapp, etc.

A "nice" but maybe not possible implementation would be similar to how it's done with context.variables, where I can access the variables set in the duckscript after the duckscript was ran - and use that data as needed. A context.stdout would be great. If that already exists, then I apologize in advance for my rant - I am somewhat new to Rust and it's documentation style.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions