Commit Graph

6 Commits

Author SHA1 Message Date
Matthias Schiffer cf0619a0f9
lua-simple-uci: do not use module(), do not rely on UCI internals
simple-uci was modifying the metatable of UCI cursor objects, thus changing
the behaviour of *all* UCI cursors, and not only UCI cursors that are
created through simple-uci.
2019-06-16 14:16:44 +02:00
Matthias Schiffer 31e2000604
treewide: remove redundant definitions from package Makefiles 2018-03-07 20:51:48 +01:00
Matthias Schiffer 6d2b807fba
lua-simple-uci: fix set()/tset()/section() with empty lists 2017-10-19 02:12:14 +02:00
Matthias Schiffer 8b65619f59
lua-simple-uci: delete option when using Cursor:set() with nil value
Setting the section type when using set() with only two arguments is a very
confusing behaviour. section() can be used without a value table for the
same result.

Deleting the option instead will make set() and get() symmetric and will
allow to simplify some code that needed to check for nil to call set() or
delete() before.
2017-08-08 04:31:26 +02:00
Matthias Schiffer c9fa162ebb
lua-simple-uci: remove support for obsolete alternative boolean strings 2017-08-08 04:30:04 +02:00
Matthias Schiffer 138ddeedf3 lua-simple-uci: new package providing wrapper around uci providing useful functions
- set allows boolean values
- delete_all
- section
- tset
- get_bool
- get_list
- get_first
- set_list
2017-01-19 12:34:20 +01:00