Skip to content

Commit 909d327

Browse files
C5uJlPavelBulat
andauthored
Added installation instructions to Readme (#6)
Co-authored-by: pavel <[email protected]>
1 parent 067948e commit 909d327

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Shell Orchestration CLI changelog
2+
23
All notable changes to so-sli will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

8+
## [0.0.2]
9+
10+
- Added installation instructions to Readme
11+
712
## [0.0.1]
13+
814
- Initial release

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
# Shell Orchestration CLI
22

3-
Documentation is available at https://so-cli.dev.
3+
## Requirements
44

5-
# How to install?
6-
1. Install composer and ensure `$HOME/.composer/vendor/bin` includes in PATH variable.
7-
2. Install so-cli package as a global dependency: `composer global require systemseed/so-cli`.
8-
3. Run `so` in terminal to display all existing commands.
5+
- PHP >= 8.2
6+
- Composer [available in your console](https://getcomposer.org/doc/03-cli.md#composer-home)
7+
8+
## How to install
9+
10+
1. Install so-cli package as a global dependency: `composer global require systemseed/so-cli`
11+
2. Run `so --version` to verify that so-cli is installed correctly
12+
3. Start using so-cli by printing list of available commands: `so list`
13+
14+
## How to contribute
15+
16+
1. Clone git repository and install dependencies:
17+
```
18+
git clone [email protected]:systemseed/so-cli.git
19+
cd so-cli
20+
composer install
21+
chmod +x so
22+
```
23+
2. Run `so --version` to verify that so-cli is installed correctly

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "systemseed/so-cli",
33
"description": "Shell Orchestration CLI",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"require": {
66
"symfony/console": "^7.0",
77
"symfony/yaml": "^7.0",

so

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use SoCli\CommandManager;
55
use SoCli\Command\PullCommands;
66
use Symfony\Component\Console\Application;
7+
use Composer\InstalledVersions;
78

89
// The code related to autoloading was copied from https://github.com/drush-ops/drush/blob/13.x/drush.php.
910

@@ -36,6 +37,8 @@ if (!$loader) {
3637
}
3738

3839
$application = new Application();
40+
$application->setName('Shell Orchestration CLI');
41+
$application->setVersion(InstalledVersions::getVersion('systemseed/so-cli'));
3942
$application->addCommands([
4043
new PullCommands(),
4144
]);

0 commit comments

Comments
 (0)