From 70ec843f6d2e817dbc53d7664b9c7b90f8e7b648 Mon Sep 17 00:00:00 2001 From: amsprost Date: Sun, 4 Aug 2019 01:08:33 +0200 Subject: [PATCH] Add README, update composer --- README.md | 28 ++++++++++ composer.json | 16 +++--- composer.lock | 134 ++++++++++++++++++++++++----------------------- phpunit.xml.dist | 2 +- 4 files changed, 105 insertions(+), 75 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6e478ae --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# OrgSync CLI +> Provides users synchronisation between your targets + +Basically it's Symfony command line app which wraps [OrgSync](https://github.com/linkorb/org-sync) library + +## Installation + +Docker: + +```sh +docker run -t -i -v=${PWD}:/opt -u $(id -u):$(id -g) --name org-sync-cli composer:latest bash +cd /opt/ && composer install +``` + +## Usage + +There are two commands to perform synchronization between your user's data: +* `linkorb:organization:sync` will perform full synchronization itself (see `bin/console linkorb:organization:sync --help` for details) +* `linkorb:user:set-password` will set password for particular passed username (see `bin/console linkorb:user:set-password --help` for details) + +### Examples +Sync organization: + +`./bin/console linkorb:organization:sync --organization organization.yaml --targets targets.yaml` + +Update password: + +`./bin/console linkorb:user:set-password --organization organization.yaml --targets targets.yaml jdoe` diff --git a/composer.json b/composer.json index dd7bd56..3cdc73c 100755 --- a/composer.json +++ b/composer.json @@ -7,16 +7,22 @@ "php": "^7.3", "ext-ctype": "*", "ext-iconv": "*", + "linkorb/org-sync": "^1.1", "symfony/console": "4.3.*", "symfony/dotenv": "4.3.*", "symfony/flex": "^1.3.1", "symfony/framework-bundle": "4.3.*", - "symfony/yaml": "4.3.*", - "linkorb/org-sync": "^0.1" + "symfony/yaml": "4.3.*" }, "require-dev": { "phpunit/phpunit": "^8" }, + "repositories": [ + { + "type": "vcs", + "url": "git@github.com:amsprost/org-sync.git" + } + ], "config": { "preferred-install": { "*": "dist" @@ -33,12 +39,6 @@ "App\\Tests\\": "tests/" } }, - "repositories": [ - { - "type": "vcs", - "url": "git@github.com:rost1994/org-sync.git" - } - ], "replace": { "paragonie/random_compat": "2.*", "symfony/polyfill-ctype": "*", diff --git a/composer.lock b/composer.lock index 73d4760..605cdb9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "82da029bdf360c984f9ab8b329373f27", + "content-hash": "677fbef0b426ea8fa705dc9f73767e2c", "packages": [ { "name": "clue/stream-filter", @@ -60,16 +60,16 @@ }, { "name": "doctrine/annotations", - "version": "v1.6.1", + "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24" + "reference": "fa4c4e861e809d6a1103bd620cce63ed91aedfeb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/53120e0eb10355388d6ccbe462f1fea34ddadb24", - "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/fa4c4e861e809d6a1103bd620cce63ed91aedfeb", + "reference": "fa4c4e861e809d6a1103bd620cce63ed91aedfeb", "shasum": "" }, "require": { @@ -78,12 +78,12 @@ }, "require-dev": { "doctrine/cache": "1.*", - "phpunit/phpunit": "^6.4" + "phpunit/phpunit": "^7.5@dev" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -96,6 +96,10 @@ "MIT" ], "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -104,10 +108,6 @@ "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, { "name": "Jonathan Wage", "email": "jonwage@gmail.com" @@ -124,32 +124,34 @@ "docblock", "parser" ], - "time": "2019-03-25T19:12:02+00:00" + "time": "2019-08-08T18:11:40+00:00" }, { "name": "doctrine/lexer", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "1febd6c3ef84253d7c815bed85fc622ad207a9f8" + "reference": "e17f069ede36f7534b95adec71910ed1b49c74ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/1febd6c3ef84253d7c815bed85fc622ad207a9f8", - "reference": "1febd6c3ef84253d7c815bed85fc622ad207a9f8", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/e17f069ede36f7534b95adec71910ed1b49c74ea", + "reference": "e17f069ede36f7534b95adec71910ed1b49c74ea", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.2" }, "require-dev": { - "phpunit/phpunit": "^4.5" + "doctrine/coding-standard": "^6.0", + "phpstan/phpstan": "^0.11.8", + "phpunit/phpunit": "^8.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -162,14 +164,14 @@ "MIT" ], "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, { "name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com" }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com" @@ -184,7 +186,7 @@ "parser", "php" ], - "time": "2019-06-08T11:03:04+00:00" + "time": "2019-07-30T19:33:28+00:00" }, { "name": "guzzlehttp/guzzle", @@ -442,20 +444,21 @@ }, { "name": "linkorb/org-sync", - "version": "v0.1.2", + "version": "v1.1.0", "source": { "type": "git", - "url": "git@github.com:rost1994/org-sync.git", - "reference": "e49edd4876bd86753be61c8f6b63ac669d3ff06d" + "url": "https://github.com/amsprost/org-sync.git", + "reference": "76d1dcf3a3b76f2706eae0356dde79d9cdede6b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rost1994/org-sync/zipball/e49edd4876bd86753be61c8f6b63ac669d3ff06d", - "reference": "e49edd4876bd86753be61c8f6b63ac669d3ff06d", + "url": "https://api.github.com/repos/amsprost/org-sync/zipball/76d1dcf3a3b76f2706eae0356dde79d9cdede6b2", + "reference": "76d1dcf3a3b76f2706eae0356dde79d9cdede6b2", "shasum": "" }, "require": { "doctrine/annotations": "^1.6", + "ext-json": "*", "knplabs/github-api": "^2.11", "php": "^7.3", "php-http/guzzle6-adapter": "^1.1", @@ -483,10 +486,9 @@ ], "description": "Organization sync library", "support": { - "source": "https://github.com/rost1994/org-sync/tree/v0.1.2", - "issues": "https://github.com/rost1994/org-sync/issues" + "source": "https://github.com/amsprost/org-sync/tree/v1.1.0" }, - "time": "2019-07-28T23:25:07+00:00" + "time": "2019-08-11T01:16:29+00:00" }, { "name": "php-http/cache-plugin", @@ -788,21 +790,21 @@ }, { "name": "php-http/message", - "version": "1.7.2", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/php-http/message.git", - "reference": "b159ffe570dffd335e22ef0b91a946eacb182fa1" + "reference": "ce8f43ac1e294b54aabf5808515c3554a19c1e1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/message/zipball/b159ffe570dffd335e22ef0b91a946eacb182fa1", - "reference": "b159ffe570dffd335e22ef0b91a946eacb182fa1", + "url": "https://api.github.com/repos/php-http/message/zipball/ce8f43ac1e294b54aabf5808515c3554a19c1e1c", + "reference": "ce8f43ac1e294b54aabf5808515c3554a19c1e1c", "shasum": "" }, "require": { "clue/stream-filter": "^1.4", - "php": "^5.4 || ^7.0", + "php": "^7.1", "php-http/message-factory": "^1.0.2", "psr/http-message": "^1.0" }, @@ -828,7 +830,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.8-dev" } }, "autoload": { @@ -856,7 +858,7 @@ "message", "psr-7" ], - "time": "2018-11-01T09:32:41+00:00" + "time": "2019-08-05T06:55:08+00:00" }, { "name": "php-http/message-factory", @@ -1192,16 +1194,16 @@ }, { "name": "symfony/cache", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "4acf343c9e3aea5a00d51926c01125441707635c" + "reference": "d263af3cec33afa862310e58545fdc10d779806f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/4acf343c9e3aea5a00d51926c01125441707635c", - "reference": "4acf343c9e3aea5a00d51926c01125441707635c", + "url": "https://api.github.com/repos/symfony/cache/zipball/d263af3cec33afa862310e58545fdc10d779806f", + "reference": "d263af3cec33afa862310e58545fdc10d779806f", "shasum": "" }, "require": { @@ -1266,7 +1268,7 @@ "caching", "psr6" ], - "time": "2019-06-26T07:55:28+00:00" + "time": "2019-06-28T13:16:30+00:00" }, { "name": "symfony/cache-contracts", @@ -2198,16 +2200,16 @@ }, { "name": "symfony/inflector", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", - "reference": "889dc28cb6350ddb302fe9b8c796e4e6eb836856" + "reference": "782e3959ea1fc95923624d6173eaf941ce3029b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/inflector/zipball/889dc28cb6350ddb302fe9b8c796e4e6eb836856", - "reference": "889dc28cb6350ddb302fe9b8c796e4e6eb836856", + "url": "https://api.github.com/repos/symfony/inflector/zipball/782e3959ea1fc95923624d6173eaf941ce3029b0", + "reference": "782e3959ea1fc95923624d6173eaf941ce3029b0", "shasum": "" }, "require": { @@ -2252,7 +2254,7 @@ "symfony", "words" ], - "time": "2019-05-30T09:28:08+00:00" + "time": "2019-07-25T10:54:24+00:00" }, { "name": "symfony/mime", @@ -2315,7 +2317,7 @@ }, { "name": "symfony/options-resolver", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -2603,16 +2605,16 @@ }, { "name": "symfony/property-access", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "18ea48862a39e364927e71b9e4942af3c1a1cb8c" + "reference": "42f3a6ddcb794c303d8fdbc33faf3f09cfefee62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/18ea48862a39e364927e71b9e4942af3c1a1cb8c", - "reference": "18ea48862a39e364927e71b9e4942af3c1a1cb8c", + "url": "https://api.github.com/repos/symfony/property-access/zipball/42f3a6ddcb794c303d8fdbc33faf3f09cfefee62", + "reference": "42f3a6ddcb794c303d8fdbc33faf3f09cfefee62", "shasum": "" }, "require": { @@ -2666,20 +2668,20 @@ "property path", "reflection" ], - "time": "2019-06-06T10:05:02+00:00" + "time": "2019-07-24T14:47:54+00:00" }, { "name": "symfony/property-info", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "5ce4d9d9c8a5dc84a3e0f793d75ef9b56e4c5f65" + "reference": "0fb251c0e06ddc5f25b63470461bb333aab46de5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/5ce4d9d9c8a5dc84a3e0f793d75ef9b56e4c5f65", - "reference": "5ce4d9d9c8a5dc84a3e0f793d75ef9b56e4c5f65", + "url": "https://api.github.com/repos/symfony/property-info/zipball/0fb251c0e06ddc5f25b63470461bb333aab46de5", + "reference": "0fb251c0e06ddc5f25b63470461bb333aab46de5", "shasum": "" }, "require": { @@ -2742,7 +2744,7 @@ "type", "validator" ], - "time": "2019-06-25T09:08:34+00:00" + "time": "2019-07-23T11:21:36+00:00" }, { "name": "symfony/routing", @@ -2822,16 +2824,16 @@ }, { "name": "symfony/serializer", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "bbf3b52653dae353259c1761cbb6f8f056dff03e" + "reference": "ff127edf8c015d3a3922b0dd56ffa2c2508a7fda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/bbf3b52653dae353259c1761cbb6f8f056dff03e", - "reference": "bbf3b52653dae353259c1761cbb6f8f056dff03e", + "url": "https://api.github.com/repos/symfony/serializer/zipball/ff127edf8c015d3a3922b0dd56ffa2c2508a7fda", + "reference": "ff127edf8c015d3a3922b0dd56ffa2c2508a7fda", "shasum": "" }, "require": { @@ -2898,7 +2900,7 @@ ], "description": "Symfony Serializer Component", "homepage": "https://symfony.com", - "time": "2019-06-17T17:37:00+00:00" + "time": "2019-07-23T14:59:17+00:00" }, { "name": "symfony/service-contracts", @@ -2960,7 +2962,7 @@ }, { "name": "symfony/var-exporter", - "version": "v4.3.2", + "version": "v4.3.3", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index cbefffa..0047d33 100755 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,4 +16,4 @@ - \ No newline at end of file +