Home

cfg @main - refs - log -
-
https://git.jolheiser.com/cfg.git
Convert between various configuration formats
cfg / example / example.jsonnet
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
local name = 'jolheiser';

{
  username: name,
  home: '/home/' + self.username,
  admins: [name, 'admin'],
  email: std.format('%s@example.com', self.username),
  address:
    {
      street: '123',
      country: 'USA',
      state: 'MT',
      zip: '12345',
      phone: '123-456-7890',
    },
}