Compare commits

...

1 Commits

Author SHA1 Message Date
0c0bbc4282
feat: with lua
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-07-02 12:35:08 +02:00
4 changed files with 25 additions and 3 deletions

View File

@ -20,12 +20,18 @@ scripts:
type: shell
new_migration:
type: shell
description: "creates a new migration in `como_infrastructure` with the given name prefixed with a date"
args:
name:
type: "env"
key: "name"
type: "flag"
name: "name"
description: "the name of the migration"
required: true
"sqlx:prepare":
type: shell
"deploy":
type: shell
"test":
type: lua

View File

@ -0,0 +1,11 @@
M = {}
function M.something()
local io = require("io")
local output = io.popen("ls"):read("a*")
print(output)
print("hello-world!")
end
return M

View File

@ -2,4 +2,4 @@
export $(cat .env | xargs)
cargo sqlx migrate add --source como_infrastructure/migrations $name
cargo sqlx migrate add --source como_infrastructure/migrations $NAME

5
scripts/test.lua Normal file
View File

@ -0,0 +1,5 @@
print("from test")
local init = require("commands")
init.something()