Plug format now changed to YAML
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"requiredPermissions": ["shell"],
|
||||
"hooks": {
|
||||
"commands": {
|
||||
"Git: Snapshot": {
|
||||
"invoke": "snapshotCommand"
|
||||
},
|
||||
"Git: Sync": {
|
||||
"invoke": "syncCommand"
|
||||
}
|
||||
},
|
||||
"crons": [
|
||||
{
|
||||
"cron": "*/15 * * * *",
|
||||
"handler": "commit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"functions": {
|
||||
"snapshotCommand": {
|
||||
"path": "./git.ts:snapshotCommand",
|
||||
"env": "client"
|
||||
},
|
||||
"syncCommand": {
|
||||
"path": "./git.ts:syncCommand",
|
||||
"env": "client"
|
||||
},
|
||||
"commit": {
|
||||
"path": "./git.ts:commit",
|
||||
"env": "server"
|
||||
},
|
||||
"sync": {
|
||||
"path": "./git.ts:sync",
|
||||
"env": "server"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
requiredPermissions:
|
||||
- shell
|
||||
functions:
|
||||
snapshotCommand:
|
||||
path: "./git.ts:snapshotCommand"
|
||||
env: client
|
||||
command:
|
||||
name: "Git: Snapshot"
|
||||
syncCommand:
|
||||
path: "./git.ts:syncCommand"
|
||||
env: client
|
||||
command:
|
||||
name: "Git: Sync"
|
||||
commit:
|
||||
path: "./git.ts:commit"
|
||||
env: server
|
||||
cron:
|
||||
- "*/15 * * * *"
|
||||
sync:
|
||||
path: "./git.ts:sync"
|
||||
env: server
|
||||
|
||||
Reference in New Issue
Block a user