Skip to content

Commit

Permalink
Fixes #6691: Add support for command options or arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Jun 3, 2015
1 parent 254ee06 commit 8b54a0c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
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:


# @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

0 comments on commit 8b54a0c

Please sign in to comment.