mirror of
https://github.com/sern-handler/snippets
synced 2026-06-06 01:16:58 +00:00
refactor: remove options from execute function
This is to support the upcoming options method in the future. Use context to find options for now.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"scope": "js,ts",
|
||||
"prefix": "serncommand",
|
||||
"body": [
|
||||
"const { commandModule, CommandType } = require('@sern/handler');\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx, options) => {\r\n\t\t$3\r\n\t},\r\n});"
|
||||
"const { commandModule, CommandType } = require('@sern/handler');\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx) => {\r\n\t\t$3\r\n\t},\r\n});"
|
||||
],
|
||||
"description": "Create a simple command in sern."
|
||||
},
|
||||
@@ -52,7 +52,7 @@
|
||||
"scope": "js,ts",
|
||||
"prefix": "serncommandesm",
|
||||
"body": [
|
||||
"import { commandModule, CommandType } from '@sern/handler';\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx, options) => {\r\n\t\t$3\r\n\t},\r\n});"
|
||||
"import { commandModule, CommandType } from '@sern/handler';\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx) => {\r\n\t\t$3\r\n\t},\r\n});"
|
||||
],
|
||||
"description": "Create a simple command in sern."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user