apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
163 stars 86 forks source link

Pass (argc, argv) in Shell interface #499

Open PengZheng opened 1 year ago

PengZheng commented 1 year ago

The main advantages of using (argc, argv) over a single string CommandLine are:

_Originally posted by @PengZheng in https://github.com/apache/celix/pull/476#discussion_r1111655952_

pnoltes commented 1 year ago

I think this can be done by introducing a new shell command interface (v2) based on the current one: https://github.com/apache/celix/blob/rel/celix-2.3.0/bundles/shell/shell/api/celix_shell_command.h

We currently already support 2 shell commands version and if we remove the current deprecated version ( https://github.com/apache/celix/blob/rel/celix-2.3.0/bundles/shell/shell/deprecated_api/command.h) when preparing for a Apache Celix 3.0.0 we could introduce a argc/argv variant and deprecated celix_shell_command.h.