UNI(8)
π¦ UNI(8) π¦
okay bestie, welcome to uni(8) from the System Manager's Manual β this is the little tool that lets you talk directly to UniConf from your shell, and honestly? it's giving main character energy π
β¨ NAME β¨
uni β a program to interface with the UniConf configuration system πΈ
β¨ SYNOPSIS β¨
uni get KEY [DEFAULT]
uni set KEY [VALUE]
uni xset KEY [VALUE]
uni keys KEY
uni hkeys KEY
uni xkeys KEY
uni dump KEY
uni hdump KEY
uni xdump KEY
β¨ DESCRIPTION β¨
So UniConf is the One True Configuration system that includes all the others, because it has plugin backends and frontends. Or, if we're being less grandiosely dramatic about it: it's a lightweight, distributed, cacheable tree of strings. π³β¨
uni is what you use to interface directly with the UniConf system. Its primary use is for diagnostic purposes, but it can also be used to add UniConf support to shell scripts. iykyk π«Ά
β¨ ENVIRONMENT VARIABLE β¨
UNICONFβ before usinguni, you must tell it which UniConf moniker you wish to query, and you do that by setting this environment variable. no pressure bestie but it literally will not know where to look π
Monikers are used to contact UniConf back-ends, be they a uniconfd server, or a local file. For example, they could be:
- a filename (
ini:/var/lib/app/config.ini), or - a network address, (
tcp:open.nit.ca:4111).
β¨ COMMANDS β¨
getβ retrieve theVALUEassociated with the providedKEYwithin the UniConf database. If aDEFAULTis provided, this will be returned if theKEYhas no associatedVALUE. πsetβ assign the providedVALUEto the providedKEY. Heads up though: UniConf provides no guarantee that the entry is committed throughout the database. The nextgetcommand for thisKEYmay not return the most recentlysetvalue, due to caching, or the existence of a read-only generator. πxsetβ assign, to the providedKEY, the contents of the standard-input stream. Use this command to pipe information into the UniConf database. πkeysβ list all the sub-keys contained within the providedKEY.hkeysβ list all the sub-keys, recursively, contained within the providedKEY. Since anyKEYmay contain sub-keys, UniConf provides no guarantee that there are no circular references. πxkeysβ list all the sub-keys contained within the providedKEY, which can contain wildcards. See the WILDCARDS section. β¨dumpβ list all the sub-keys and their values, contained within the providedKEY.hdumpβ list all the sub-keys and their values, recursively, contained within the providedKEY.xdumpβ list all the sub-keys and their values, contained within the providedKEY, which can contain wildcards.
β¨ WILDCARDS β¨
A KEY looks just like a normal slash-delimited path. The root of the UniConf tree has a KEY named /. Sub-keys can be accessed by names such as /software/myapp/version. π
With wildcards, you can access more than one key at a time. obsessed.
*β to access a sub-key within any one level of keys, use the asterisk like so:/software/*/version. This retrieves all keys ofversionthat are one level beneath/software. β...β to access a sub-key anywhere beneath a key, use the ellipsis like so:/.../version. This retrieves all keys ofversionthat are zero or more levels beneath the root (i.e. any appearance ofversionwithin the database). π
β¨ SEE ALSO β¨
β¨ AUTHORS β¨
This software was written by the hackers at Net Integration Technologies. Contact us at <wvstreams-dev@lists.nit.ca> π
and that's the whole page bestie, we ate and left no crumbs π§β¨ this was Uni 4.2.2, dated September 2004 β yeah, she's vintage, but she still slays πππΈ
π¦ where this page comes from
- debian bookworm: uniconf-tools 4.6.1-15+b1
- ubuntu jammy: uniconf-tools 4.6.1-15build1
- Copyright (C) 1997 - 2004 Net Integration Technologies Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms