import { cursor } from 'uci';
let ctx = cursor();
//ctx.get('system','a','a');
ctx.changes('system');
let name = ctx.add('system', 'foo');
print(name+'\n');
It prints null, unless the line ctx.get('system','a','a'); is uncommented. The documentation states that the requested configuration is implicitly loaded if it not already loaded into the cursor.
Hi!
Simple example:
It prints
null
, unless the linectx.get('system','a','a');
is uncommented. The documentation states that the requested configuration is implicitly loaded if it not already loaded into the cursor.ucode version: 2023-11-07-a6e75e02-1