Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0 authored and 0 committed Aug 7, 2017
1 parent 45bf243 commit 8b277e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
themes/
downloaded/
vendor/
*.lock
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ $ composer require wbadrh/git-dl
```

```php
$git = new GitDownload(__DIR__ . '/themes');
<?php

$author = 'BlackrockDigital';
$repository = 'startbootstrap-agency';
$git = new GitDownload(__DIR__ . '/downloaded');

$author = 'wbadrh';
$repository = 'git-dl';
$branch = 'master';

$git->clone($author, $repository, $branch);
```

Would download in: themes/BlackrockDigital/startbootstrap-agency/
Would download in: downloaded/wbadrh/git-dl/
6 changes: 3 additions & 3 deletions test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

require __DIR__ . '/vendor/autoload.php';

$git = new GitDownload(__DIR__ . '/themes');
$git = new GitDownload(__DIR__ . '/downloaded');

$author = 'BlackrockDigital';
$repository = 'startbootstrap-agency';
$author = 'wbadrh';
$repository = 'git-dl';
$branch = 'master';

$git->clone($author, $repository, $branch);

0 comments on commit 8b277e6

Please sign in to comment.