Skip to content

Inteligently reconcile running namespaces with tool arguments #180

@DavidMarchant

Description

@DavidMarchant

Tool arguments have been re-implemented with the merging of #175. Arguments are now essential parameters to run commands for tools that define them in their config files. If you try to run a tool with arguments defined without specifying those arguments in the run command a run-time error is produced. However, as it stands, namespaces cannot be ran with arguments and all tools within the namespace will be ran as though they were called without arguments, producing no errors even where errors should be produced.

This functionality is counter intuitive and will be changed.

Sub-optimally, the solution would be to error if a namespace that contains tools that require arguments is ran.
Ideally, however, a better solution (and the solution we will work towards) is to implement an intelligent way of passing arguments to all the tools in a namespace when that namespace is run. This will still involve error-ing if no arguments are provided as above but each argument defined within the namespace should be specified in the run [namespace] command. Additionally all arguments defined with the same name in separate configs should be specified with the same value [1], this is possible due to each arguments existence as a key in a key-value pair.

[1] e.g. if the argument 'USER' is defined namespace1 tool1 and namespace1 tool3 it should have a value specified once in the run command which will then be applied to both tools.

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