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}"
|
, home = "/home/${name}"
|
||||||
, admins = [ name, "admin" ]
|
, admins = [ name, "admin" ]
|
||||||
, email = "${name}@example.com"
|
, 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": [
|
"admins": [
|
||||||
"jolheiser",
|
"jolheiser",
|
||||||
"admin"
|
"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": [
|
"admins": [
|
||||||
"jolheiser",
|
"jolheiser",
|
||||||
"admin"
|
"admin"
|
||||||
],
|
],
|
||||||
"email": "jolheiser@example.com",
|
"email": "jolheiser@example.com",
|
||||||
"home": "/home/jolheiser",
|
"home": "/home/jolheiser",
|
||||||
// The user!
|
"username": "jolheiser" // User's name
|
||||||
"username": "jolheiser",
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
|
home "/home/jolheiser"
|
||||||
admins "jolheiser" "admin"
|
admins "jolheiser" "admin"
|
||||||
email "jolheiser@example.com"
|
email "jolheiser@example.com"
|
||||||
|
address state="MT" zip="12345" phone="123-456-7890" street="123" country="USA"
|
||||||
username "jolheiser"
|
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'
|
email = 'jolheiser@example.com'
|
||||||
home = '/home/jolheiser'
|
home = '/home/jolheiser'
|
||||||
username = '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:
|
admins:
|
||||||
- jolheiser
|
- jolheiser
|
||||||
- admin
|
- admin
|
||||||
|
|
Loading…
Reference in New Issue