File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed
tests/fixtures/difference/valid/identical Expand file tree Collapse file tree 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
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```
2121php ./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```
2626php ./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```
3131php ./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```
3737php ./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```
4545php ./vendor/bin/env-diff diff
4646```
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 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