mirror of https://git.jolheiser.com/cfg.git
docs: add nested object to examples
Signed-off-by: jolheiser <john.olheiser@gmail.com>main
parent
c3e43f01e0
commit
159c6ae362
|
@ -4,4 +4,11 @@ in { username = name
|
|||
, home = "/home/${name}"
|
||||
, admins = [ name, "admin" ]
|
||||
, email = "${name}@example.com"
|
||||
, address =
|
||||
{ street = "123"
|
||||
, country = "USA"
|
||||
, state = "MT"
|
||||
, zip = "12345"
|
||||
, phone = "123-456-7890"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
{
|
||||
"address": {
|
||||
"country": "USA",
|
||||
"phone": "123-456-7890",
|
||||
"state": "MT",
|
||||
"street": "123",
|
||||
"zip": "12345"
|
||||
},
|
||||
"admins": [
|
||||
"jolheiser",
|
||||
"admin"
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
{
|
||||
// User's address
|
||||
"address": {
|
||||
"country": "USA",
|
||||
"phone": "123-456-7890",
|
||||
"state": "MT",
|
||||
"street": "123",
|
||||
"zip": "12345"
|
||||
},
|
||||
// Admins for foobar
|
||||
"admins": [
|
||||
"jolheiser",
|
||||
"admin"
|
||||
],
|
||||
"email": "jolheiser@example.com",
|
||||
"home": "/home/jolheiser",
|
||||
// The user!
|
||||
"username": "jolheiser",
|
||||
"username": "jolheiser" // User's name
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
home "/home/jolheiser"
|
||||
admins "jolheiser" "admin"
|
||||
email "jolheiser@example.com"
|
||||
address state="MT" zip="12345" phone="123-456-7890" street="123" country="USA"
|
||||
username "jolheiser"
|
||||
home "/home/jolheiser"
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ admins = [ "jolheiser" "admin" ]; email = "jolheiser@example.com"; home = "/home/jolheiser"; username = "jolheiser"; }
|
||||
{ address = { country = "USA"; phone = "123-456-7890"; state = "MT"; street = "123"; zip = "12345"; }; admins = [ "jolheiser" "admin" ]; email = "jolheiser@example.com"; home = "/home/jolheiser"; username = "jolheiser"; }
|
||||
|
|
|
@ -2,3 +2,10 @@ admins = ['jolheiser', 'admin']
|
|||
email = 'jolheiser@example.com'
|
||||
home = '/home/jolheiser'
|
||||
username = 'jolheiser'
|
||||
|
||||
[address]
|
||||
country = 'USA'
|
||||
phone = '123-456-7890'
|
||||
state = 'MT'
|
||||
street = '123'
|
||||
zip = '12345'
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
address:
|
||||
country: USA
|
||||
phone: 123-456-7890
|
||||
state: MT
|
||||
street: "123"
|
||||
zip: "12345"
|
||||
admins:
|
||||
- jolheiser
|
||||
- admin
|
||||
|
|
Loading…
Reference in New Issue