[
https://issues.apache.org/jira/browse/KARAF-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hendy Irawan updated KARAF-1238:
--------------------------------
Description:
A tool, or a GoGo shell command that can iterate all the currently available
commands, and generate a bash script with autocompletion of options (and for a
set of specially annotated arguments).
The resulting behavior is similar to how "git" tool behaves in Ubuntu.
The usage of resulting script is like this:
{code}
SCRIPT_NAME [-h|--host=PORT] [-p|--port=PORT] [-u|--user=USER]
[-w|--password=PASSWORD] \
[-b|--batch] COMMAND [OPTION ...] [ARG ...]
{code}
SCRIPT_NAME is specified during bash script generation.
If the "-h" parameter is not specified, it will create a Karaf instance,
execute the command(s) and exit. If specified, it will connect an already
running Karaf instance via SSH.
If the "-b" parameter is specified, it will also process commands via stdin
after running the single command passed via args.
If the "-u" parameter is specified, it will execute the command as the
specified Karaf user.
This will take some effort to realize. But I appreciate if anyone who deems
this feature useful add their vote or provide comments whether you are or
against it. :-)
was:
A tool, or a GoGo shell command that can iterate all the currently available
commands, and generate a bash script with autocompletion of options (and for a
set of specially annotated arguments).
The resulting behavior is similar to how "git" tool behaves in Ubuntu.
The usage of resulting is like this:
{code}
SCRIPT_NAME [-h|--host=PORT] [-p|--port=PORT] [-u|--user=USER]
[-w|--password=PASSWORD] \
[-b|--batch] COMMAND [OPTION ...] [ARG ...]
{code}
SCRIPT_NAME is specified during bash script generation.
If the "-h" parameter is not specified, it will create a Karaf instance,
execute the command(s) and exit. If specified, it will connect an already
running Karaf instance via SSH.
If the "-b" parameter is specified, it will also process commands via stdin
after running the single command passed via args.
If the "-u" parameter is specified, it will execute the command as the
specified Karaf user.
This will take some effort to realize. But I appreciate if anyone who deems
this feature useful add their vote or provide comments whether you are or
against it. :-)
> Utility to generate bash script with autocompletion
> ---------------------------------------------------
>
> Key: KARAF-1238
> URL: https://issues.apache.org/jira/browse/KARAF-1238
> Project: Karaf
> Issue Type: New Feature
> Components: karaf-shell
> Affects Versions: 2.2.5
> Environment: Linux and Mac OS X (similar feature can be developed on
> Windows via PowerShell, and it's also usable by Cygwin)
> Reporter: Hendy Irawan
>
> A tool, or a GoGo shell command that can iterate all the currently available
> commands, and generate a bash script with autocompletion of options (and for
> a set of specially annotated arguments).
> The resulting behavior is similar to how "git" tool behaves in Ubuntu.
> The usage of resulting script is like this:
> {code}
> SCRIPT_NAME [-h|--host=PORT] [-p|--port=PORT] [-u|--user=USER]
> [-w|--password=PASSWORD] \
> [-b|--batch] COMMAND [OPTION ...] [ARG ...]
> {code}
> SCRIPT_NAME is specified during bash script generation.
> If the "-h" parameter is not specified, it will create a Karaf instance,
> execute the command(s) and exit. If specified, it will connect an already
> running Karaf instance via SSH.
> If the "-b" parameter is specified, it will also process commands via stdin
> after running the single command passed via args.
> If the "-u" parameter is specified, it will execute the command as the
> specified Karaf user.
> This will take some effort to realize. But I appreciate if anyone who deems
> this feature useful add their vote or provide comments whether you are or
> against it. :-)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira