Commit graph

5 commits

Author SHA1 Message Date
b9ab345946 add isset check 2022-11-23 11:18:42 +01:00
097ca9444f add mode switch to cfg script 2022-11-23 08:10:40 +01:00
849b35a72a do not quote result if it is a single value 2022-11-07 12:07:59 +01:00
9457987a31 Settings files are no longer required
all you need is a config/ directory under the appPath
If you do not have any settingsfiles to read, show will always report
settings not found
If you write, you can only write a new file with settings in the root
like `cfg write PREFIX
='{"key":"value","key2":{"some":"more","levels":"there"}}'

Which will give you a file `config/PREFIX.conf.php` with the contents
``` php
<?php return
[
	'key' => 'value',
	'key2' =>
	[
		'some' => 'more',
		'levels' => 'there'
	]
];
```

If you have a `default.conf.php` but now `conf.php` and modify a setting
a new conf.php file with the setting to override is written
2021-05-05 08:52:34 +02:00
ab736148c0 implement beta version of cli
relates to #2268
2021-05-04 17:55:29 +02:00