Pass through wildcard when have match in incmp
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
for f in $(ls $1); do
|
||||
for f in $(ls $1/*.vis); do
|
||||
b=$(basename $f)
|
||||
b=${b%.*}
|
||||
go run ./dev/asm $1/$b.vis > $1/$b.bin
|
||||
|
||||
2
examples/profile/entry_email
Normal file
2
examples/profile/entry_email
Normal file
@@ -0,0 +1,2 @@
|
||||
Your email is now: {{.myemail}}
|
||||
Enter new email.
|
||||
3
examples/profile/entry_email.save.vis
Normal file
3
examples/profile/entry_email.save.vis
Normal file
@@ -0,0 +1,3 @@
|
||||
LOAD entry_email_save 0
|
||||
RELOAD myemail
|
||||
MOVE _
|
||||
6
examples/profile/entry_email.vis
Normal file
6
examples/profile/entry_email.vis
Normal file
@@ -0,0 +1,6 @@
|
||||
LOAD myemail 32
|
||||
MAP myemail
|
||||
MOUT 0 "abort"
|
||||
HALT
|
||||
INCMP 0 _
|
||||
INCMP * entry_email_save
|
||||
@@ -1,3 +1,2 @@
|
||||
LOAD entry_name_save 0
|
||||
RELOAD myname
|
||||
MOVE _
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
@@ -22,6 +23,7 @@ var (
|
||||
)
|
||||
|
||||
func nameSave(sym string, input []byte, ctx context.Context) (resource.Result, error) {
|
||||
log.Printf("writing name to file")
|
||||
fp := path.Join(scriptDir, "myname.txt")
|
||||
err := ioutil.WriteFile(fp, input, 0600)
|
||||
return resource.Result{}, err
|
||||
|
||||
1
examples/profile/myemail.txt
Normal file
1
examples/profile/myemail.txt
Normal file
@@ -0,0 +1 @@
|
||||
not set
|
||||
@@ -1 +1 @@
|
||||
inky
|
||||
not set
|
||||
Reference in New Issue
Block a user