mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-16 12:58:48 +08:00
Embedded modules now live under embedded:.
This commit is contained in:
parent
5e63f06960
commit
ee48673048
|
@ -1,7 +1,7 @@
|
|||
package eval
|
||||
|
||||
var embeddedModules = map[string]string{
|
||||
"elves:acme": `fn acme {
|
||||
"embedded:acme": `fn acme {
|
||||
echo 'So this'
|
||||
put works.
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// shell.
|
||||
package eval
|
||||
|
||||
//go:generate ./gen-builtin-modules
|
||||
//go:generate ./gen-embedded-modules
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
|
|
@ -7,7 +7,7 @@ out = ./embedded-modules.go
|
|||
echo "var embeddedModules = map[string]string{"
|
||||
|
||||
for f [*.elv] {
|
||||
print '"elves:'$f[:-4]'": `'
|
||||
print '"embedded:'$f[:-4]'": `'
|
||||
cat $f | sed 's/`/``/g'
|
||||
echo '`,'
|
||||
}
|
Loading…
Reference in New Issue
Block a user