Skip to content

Commit b2e141a

Browse files
committed
Add changelog
1 parent 59de8c6 commit b2e141a

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 1.0.0 (2017-05-14)
2+
3+
Initial release of the library.

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ composer install tekill/env-diff
1616

1717
## Manual running
1818
### Actualize variables
19-
Compare `.env` with `.env.dist` and add missing variables to `.env` file
19+
Compare `.env` with `.env.dist` and add missing variables to `.env` file.
2020
```
2121
php ./vendor/bin/env-diff actualize
2222
```
2323

24-
Compare `.env` with `.env.example` and add missing variables to `.env` file
24+
Compare `.env` with `.env.example` and add missing variables to `.env` file.
2525
```
2626
php ./vendor/bin/env-diff actualize .env.example
2727
```
2828

29-
Compare `.env-target` with `.env.example` and add missing variables to `.env-target` file
29+
Compare `.env-target` with `.env.example` and add missing variables to `.env-target` file.
3030
```
3131
php ./vendor/bin/env-diff actualize .env.example .env-target
3232
```
3333

34-
If you want to delete outdated values just run command with `-k=false` option
34+
If you want to delete outdated values just run command with `-k=false` option.
3535

3636
```
3737
php ./vendor/bin/env-diff actualize -k=false
3838
```
3939

4040
### Show differences
41-
Command has same interface, arguments and options
41+
Command has same interface, arguments and options.
4242

43-
Compare `.env` with `.env.dist` and show differences between them
43+
Compare `.env` with `.env.dist` and show differences between them.
4444
```
4545
php ./vendor/bin/env-diff diff
4646
```

src/IO/ComposerIO.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function isInteractive()
4040

4141
/**
4242
* {@inheritdoc}
43+
*
44+
* @throws \RuntimeException
4345
*/
4446
public function ask($question, $default = null)
4547
{
46-
return $this->ask($question, $default);
48+
return $this->io->ask($question, $default);
4749
}
4850
}

src/Processor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function actualizeEnv(Config $config)
3535
$target = $config->getTarget();
3636
$exists = is_file($target);
3737

38-
$this->io->write(sprintf('Actualize env from %s', $dist));
38+
$this->io->write(sprintf('<fg=green>Actualize env from "%s"</>', $dist));
3939

4040
try {
4141
$distEnv = Env::parse($dist);
@@ -89,7 +89,7 @@ public function showDifference(Config $config)
8989
$changedEnv = array_diff(array_intersect_key($distEnv, $actualEnv), $actualEnv);
9090

9191
if (!count($missingEnv) && !count($extraEnv) && !count($changedEnv)) {
92-
$this->io->write(sprintf('<info>%s and %s is identical</info>', $target, $dist));
92+
$this->io->write(sprintf('<info>"%s" and "%s" is identical</info>', $target, $dist));
9393

9494
return false;
9595
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<info>.env and .env.dist is identical</info>
1+
<info>".env" and ".env.dist" is identical</info>

0 commit comments

Comments
 (0)