Pass through wildcard when have match in incmp

This commit is contained in:
lash
2023-04-16 08:13:09 +01:00
parent 355b466746
commit 0ab6868eca
13 changed files with 89 additions and 16 deletions

View File

@@ -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

View File

@@ -0,0 +1,2 @@
Your email is now: {{.myemail}}
Enter new email.

View File

@@ -0,0 +1,3 @@
LOAD entry_email_save 0
RELOAD myemail
MOVE _

View File

@@ -0,0 +1,6 @@
LOAD myemail 32
MAP myemail
MOUT 0 "abort"
HALT
INCMP 0 _
INCMP * entry_email_save

View File

@@ -1,3 +1,2 @@
LOAD entry_name_save 0
RELOAD myname
MOVE _

View File

@@ -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

View File

@@ -0,0 +1 @@
not set

View File

@@ -1 +1 @@
inky
not set