Skip to content

Feature Idea: Alternate channel inlet via JSON #13

@vanrein

Description

@vanrein

After a little getting-to-know, I find cmdparser a very useful extension to plain Cmd. Thank you!

We use cmdparser to define local shells for (micro)services, and this format is unbeatable for administration, certainly with completion facilities. But, now that I'm connecting them, I find myself passing shell commands over backbone connectivity, just so I can reuse the existing shell interface. This way of connecting services is not what most programmers expect or want.

I was wondering how easy it would be to add a parallel inlet, say a onecmd_json(), with an input that holds pretty much a JSON version of the dictionary contents, and possibly flattened out to the simpler forms as well, for optimal compatibility. The output might hold a stdout and stderr variable with the respective stream outputs.

This would be perfect for our GSS-API over AMQP 1.0 backbone, but it's much more general -- I'm writing it up here because I imagined it might be best solved in a generic manner in your cmdparser module. That might help its popularity too :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions