Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
3e5309e1e6
commit
0c0bbc4282
10
cuddle.yaml
10
cuddle.yaml
@ -20,12 +20,18 @@ scripts:
|
|||||||
type: shell
|
type: shell
|
||||||
new_migration:
|
new_migration:
|
||||||
type: shell
|
type: shell
|
||||||
|
description: "creates a new migration in `como_infrastructure` with the given name prefixed with a date"
|
||||||
args:
|
args:
|
||||||
name:
|
name:
|
||||||
type: "env"
|
type: "flag"
|
||||||
key: "name"
|
name: "name"
|
||||||
|
description: "the name of the migration"
|
||||||
|
required: true
|
||||||
"sqlx:prepare":
|
"sqlx:prepare":
|
||||||
type: shell
|
type: shell
|
||||||
|
|
||||||
"deploy":
|
"deploy":
|
||||||
type: shell
|
type: shell
|
||||||
|
|
||||||
|
"test":
|
||||||
|
type: lua
|
||||||
|
11
scripts/lua/commands/init.lua
Normal file
11
scripts/lua/commands/init.lua
Normal 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
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
export $(cat .env | xargs)
|
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
5
scripts/test.lua
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
print("from test")
|
||||||
|
|
||||||
|
local init = require("commands")
|
||||||
|
|
||||||
|
init.something()
|
Loading…
Reference in New Issue
Block a user