File tree 5 files changed +15
-10
lines changed
tests/fixtures/difference/valid/identical
5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change
1
+ # 1.0.0 (2017-05-14)
2
+
3
+ Initial release of the library.
Original file line number Diff line number Diff line change @@ -16,31 +16,31 @@ composer install tekill/env-diff
16
16
17
17
## Manual running
18
18
### 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.
20
20
```
21
21
php ./vendor/bin/env-diff actualize
22
22
```
23
23
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.
25
25
```
26
26
php ./vendor/bin/env-diff actualize .env.example
27
27
```
28
28
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.
30
30
```
31
31
php ./vendor/bin/env-diff actualize .env.example .env-target
32
32
```
33
33
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.
35
35
36
36
```
37
37
php ./vendor/bin/env-diff actualize -k=false
38
38
```
39
39
40
40
### Show differences
41
- Command has same interface, arguments and options
41
+ Command has same interface, arguments and options.
42
42
43
- Compare ` .env ` with ` .env.dist ` and show differences between them
43
+ Compare ` .env ` with ` .env.dist ` and show differences between them.
44
44
```
45
45
php ./vendor/bin/env-diff diff
46
46
```
Original file line number Diff line number Diff line change @@ -40,9 +40,11 @@ public function isInteractive()
40
40
41
41
/**
42
42
* {@inheritdoc}
43
+ *
44
+ * @throws \RuntimeException
43
45
*/
44
46
public function ask ($ question , $ default = null )
45
47
{
46
- return $ this ->ask ($ question , $ default );
48
+ return $ this ->io -> ask ($ question , $ default );
47
49
}
48
50
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function actualizeEnv(Config $config)
35
35
$ target = $ config ->getTarget ();
36
36
$ exists = is_file ($ target );
37
37
38
- $ this ->io ->write (sprintf ('Actualize env from %s ' , $ dist ));
38
+ $ this ->io ->write (sprintf ('<fg=green> Actualize env from "%s"</> ' , $ dist ));
39
39
40
40
try {
41
41
$ distEnv = Env::parse ($ dist );
@@ -89,7 +89,7 @@ public function showDifference(Config $config)
89
89
$ changedEnv = array_diff (array_intersect_key ($ distEnv , $ actualEnv ), $ actualEnv );
90
90
91
91
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 ));
93
93
94
94
return false ;
95
95
}
Original file line number Diff line number Diff line change 1
- <info>.env and .env.dist is identical</info>
1
+ <info>" .env" and " .env.dist" is identical</info>
You can’t perform that action at this time.
0 commit comments