You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
ucode version: 2023-11-07-a6e75e02-1
The text was updated successfully, but these errors were encountered:
When invoked with an explicit package name argument, retain the autoloaded
configuration within the context state.
Fixes: #188
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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
The text was updated successfully, but these errors were encountered: