Skip to content

Commit e78af77

Browse files
Merge pull request #2 from codenamephp/main
Initial release
2 parents a6b1186 + 03f3d64 commit e78af77

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,27 @@
88
![Packagist Downloads](https://img.shields.io/packagist/dt/codenamephp/deployer.command)
99
![GitHub](https://img.shields.io/github/license/codenamephp/deployer.command)
1010

11+
## What is it?
12+
13+
This package provides basic functionality for command line tasks and service handling.
14+
1115
## Installation
1216

1317
Easiest way is via composer. Just run `composer require codenamephp/deployer.command` in your cli which should install the latest version for you.
1418

15-
## Usage
19+
## Usage
20+
21+
### Commands
22+
23+
This package provides a `\de\codenamephp\deployer\command\runner\iRunner` that abstracts running of commands. The default implementation
24+
`\de\codenamephp\deployer\command\runner\WithDeployerFunctions` - as the name suggests - uses the `Deployer\run()` method to run commands.
25+
26+
The `\de\codenamephp\deployer\command\iCommand` interface is designed to just get a command string along with a
27+
`\de\codenamephp\deployer\command\runConfiguration\iRunConfiguration` that holds the options like timeouts etc. to run the command with. The
28+
default `\de\codenamephp\deployer\command\Command` provides a simple API to build a command. Recommended usage is to create a Factory to build a command with
29+
the binary, arguments etc. This factory can then be used in tasks to build the command and the runner to run it.
30+
31+
### Service
32+
33+
There is a `\de\codenamephp\deployer\command\service\iService` interface that is intended to manage service with
34+
`\de\codenamephp\deployer\command\service\Service` and `\de\codenamephp\deployer\command\service\Systemctl` to manage debian services.

0 commit comments

Comments
 (0)