Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6691: Add support for command options or arguments #14

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ a new pull request to add it to share/command in this repository.
A command must have the following properties :
- be called agent-<command> or server-<command>
- parameters will not include the 'agent', 'server' or <command> given in the command line
- the executable must contain a string with a single line of the form
- the executable must contain a string with a single line of the form:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix markdown formatting.


# @description <brief command description>

- the executable may also contain a single or multi-line string of the form
- the executable may also contain a single or multi-line string of the form:


# @man <detailed command description>

Expand Down
6 changes: 5 additions & 1 deletion share/commands/agent-enable
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh
# @description re-enable a disabled rudder-agent
# @man +
# @man +
# @man *Options*:
# @man +
# @man *-s*: start rudder-agent in addition to enabling it

while getopts "s" opt; do
case $opt in
Expand Down Expand Up @@ -38,4 +43,3 @@ else
echo "rudder-agent has been enabled but not started, wait for next cron run"
fi
fi

4 changes: 4 additions & 0 deletions share/commands/server-debug
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# @man to the port the debug server is listening on (5310 by default).
# @man +
# @man Use Ctrl+C to stop the debug server.
# @man +
# @man *Arguments*:
# @man +
# @man *node*: IP or hostname of the host you want to debug

DEBUG_PORT=5310

Expand Down