You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parametrize the openserverless extension to customize commands
How it could be?
The extension should use the package.json file for its configuration, and read the entry openservleress-extension. The format shouuld be
{
"openerverless-extension": [
{ "type": "button",
"label": "Test",
"command": "ops ai test"
},
{ "type": "select"
"label": "Lessons"
"commands: [
["Lesson 0 - Setup", "ops ai lesson 0-hello"],
["lesson 1 - Chat", "ops ali lesson 1-chat"]
]
}
]
}
Note that when it is "command" it will display just a button. When it is "commands" it will display a selet with a list of commands and when selected will execute the selected command.
Other related information
It should work with the defaults if there is no package.json in the workspace folder.
The text was updated successfully, but these errors were encountered:
sciabarracom
changed the title
parametric menu
parametric menu in the openserverless extension
Jan 6, 2025
Why you need it?
parametrize the openserverless extension to customize commands
How it could be?
The extension should use the package.json file for its configuration, and read the entry
openservleress-extension
. The format shouuld be{
"openerverless-extension": [
{ "type": "button",
"label": "Test",
"command": "ops ai test"
},
{ "type": "select"
"label": "Lessons"
"commands: [
["Lesson 0 - Setup", "ops ai lesson 0-hello"],
["lesson 1 - Chat", "ops ali lesson 1-chat"]
]
}
]
}
Note that when it is "command" it will display just a button. When it is "commands" it will display a selet with a list of commands and when selected will execute the selected command.
Other related information
It should work with the defaults if there is no package.json in the workspace folder.
The text was updated successfully, but these errors were encountered: