Home

cfg @5edec76b62d532dbb0e67a427b43377277660ad2 - 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',
    },
}