Skip to content

feat: Review - reimplement Command Manager #30

@apuchmarcos

Description

@apuchmarcos

Area / component

CLI (cds)

Problem statement

Review and re-implement the existing CommandManager interface to better fit the needs.
Instead of relying / calling agent client, on every command after precomputation of the payload which also returns the client, just call a single function ag.execute({big_payload}).
The big_payload will include as 'title' the command that its refers to i.e: cds p run and after all the requierement information for the agent.

The final goal is to allow the server be able triage if the command is implement on its server version

Proposed solution

Review and re-implement the existing CommandManager interface to better fit the needs.
Instead of relying / calling agent client, on every command after precomputation of the payload which also returns the client, just call a single function ag.execute({big_payload}).
The big_payload will include as 'title' the command that its refers to i.e: cds p run and after all the requierement information for the agent.

The final goal is to allow the server be able triage if the command is implement on its server version

Alternatives considered

No response

Scope / impact

No response

Contribution

  • I’m willing to help implement this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions