Skip to content

Provide API to embed text console #381

Open
@stepancheg

Description

@stepancheg

What problem are you trying to solve?

We have a binary deployed to servers.

It is not always trivial to get tokio-console binary to these servers.

We'd like to embed tokio-console in the binary. With command like:

our_binary --tokio-console

That binary should just launch tokio-console.

How should the problem be solved?

tokio-console crate to implement simple public API like:

fn run(args: &[&str]) { ... }

that API will do whatever tokio-console does: connects to the server, launch text UI, interpret keyboard input etc.

Any alternatives you've considered?

Do not embed tokio-console binary.

How would users interact with this feature?

No response

Would you like to work on this feature?

maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-consoleCrate: console.S-featureSeverity: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions