From ea8b14e79fba74d5dee9865368d09f28feb1bbc2 Mon Sep 17 00:00:00 2001 From: NextTurn <45985406+NextTurn@users.noreply.github.com> Date: Mon, 10 Aug 2020 00:00:00 +0800 Subject: [PATCH] Add commands --- README.md | 2 +- docs/cli-commands.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f810ed6..3a16f7b 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Your renamed *WinSW.exe* binary also accepts the following commands: | [status](docs/cli-commands.md#status-command) | Checks the status of the service. | | [test](docs/cli-commands.md#test-command) | Checks if the service can be started and then stopped without installation. | | [refresh](docs/cli-commands.md#refresh-command) | Refreshes the service properties without reinstallation. | -| customize | Customizes the wrapper executable. | +| [customize](docs/cli-commands.md#customize-command) | Customizes the wrapper executable. | | dev | Experimental commands. | Experimental commands: diff --git a/docs/cli-commands.md b/docs/cli-commands.md index c638967..914425e 100644 --- a/docs/cli-commands.md +++ b/docs/cli-commands.md @@ -10,6 +10,7 @@ - [status](#status-command) - [test](#test-command) - [refresh](#refresh-command) +- [customize](#customize-command) ## `install` command @@ -218,3 +219,33 @@ If a file isn't specified, WinSW searches the executable directory for a *.xml* - `--no-elevate` Doesn't automatically trigger a UAC prompt. + +## `customize` command + +Customizes the wrapper executable. + +### Usage + +```console +winsw customize -o|--output --manufacturer +``` + +### Options + +- `-o|--output ` + + Required. Specifies the path to the output file. + +- `--manufacturer ` + + Specifies the manufacturer name of the customized executable. + +## `dev ps` command + +Draws the process tree associated with the service. + +### Usage + +```console +winsw dev [] ps +```