add the ability to import specific variables and modules

This commit is contained in:
Ugric committed 2022-06-30 19:45:15 +01:00
1 parent d2aea49006
commit 22db06827c
18 files changed
+185 -143

No files matched your search

+2 -1
View File
@@ -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))