@@ -22,32 +22,32 @@ In the coming days, I will release never seen before parsers written in Bash cal
22
22
# }
23
23
24
24
declare -A root_object=()
25
- declare -A zulu_object=([yankee]= )
26
- declare -A yankee_object=([xray]= )
27
- declare -A xray_object=([whiskey]=victor [foxtrot]= )
25
+ declare -A zulu_object=()
26
+ declare -A yankee_object=()
27
+ declare -A xray_object=([whiskey]=victor)
28
28
declare -a foxtrot_array=(omicron pi rho sigma)
29
29
30
30
bobject set-object --pass-by-ref root_object ' .zulu' zulu_object
31
31
bobject set-object --pass-by-ref root_object ' .zulu.yankee' yankee_object
32
32
bobject set-object --pass-by-ref root_object ' .zulu.yankee.xray' xray_object
33
- bobject set-array root_object ' .zulu.yankee.xray.foxtrot' foxtrot_array
33
+ bobject set-array --pass-by-ref root_object ' .zulu.yankee.xray.foxtrot' foxtrot_array
34
34
35
35
bobject get-object root_object ' .zulu.yankee.xray'
36
36
assert [ " ${REPLY[whiskey]} " = victor ]
37
37
38
38
bobject get-string root_object ' .zulu.yankee.xray.whiskey'
39
39
assert [ " $REPLY " = victor ]
40
40
41
- bobject get-array root_object ' .zulu.yankee.xray.victor '
42
- assert [ ${# REPLY} -eq 4 ]
41
+ bobject get-array root_object ' .zulu.yankee.xray.foxtrot '
42
+ assert [ ${# REPLY[@] } -eq 4 ]
43
43
44
- bobject get-string root_object ' .["zulu"].["yankee"].["xray"].["victor "].[2]'
44
+ bobject get-string root_object ' .["zulu"].["yankee"].["xray"].["foxtrot "].[2]'
45
45
assert [ " $REPLY " = rho ]
46
46
```
47
47
48
48
## Installation
49
49
50
- STATUS: IN DEVELOPMENT!
50
+ STATUS: ALPHA
51
51
52
52
``` sh
53
53
echo " dependencies = [ 'hyperupcall/bash-object' ]" > ' bpm.toml'
0 commit comments