mirror of
https://github.com/Open-Argon/argon-v2.git
synced 2026-10-28 18:02:25 +00:00
add the ability to import specific variables and modules
This commit is contained in:
1 parent
d2aea49006
commit
22db06827c
18 files changed
+185
-143
No files matched your search
@@ -13,6 +13,7 @@ func shell() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
variables := map[string]variableValue{}
|
||||
for {
|
||||
tempstr := ""
|
||||
if indent >= 0 {
|
||||
@@ -29,7 +30,7 @@ func shell() {
|
||||
}
|
||||
temp += tempstr
|
||||
if indent >= 0 {
|
||||
resp := runStr(temp, ex)
|
||||
resp := runStr(temp, ex, variables)
|
||||
for i := 0; i < len(resp); i++ {
|
||||
if resp[i][1] != nil {
|
||||
fmt.Println(anyToArgon(resp[i][0], false))
|
||||
|
||||
Reference in new issue
Block a user