Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parametric menu in the openserverless extension #92

Open
sciabarracom opened this issue Jan 6, 2025 · 0 comments
Open

parametric menu in the openserverless extension #92

sciabarracom opened this issue Jan 6, 2025 · 0 comments
Assignees

Comments

@sciabarracom
Copy link
Contributor

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.

@sciabarracom sciabarracom changed the title parametric menu parametric menu in the openserverless extension Jan 6, 2025
@sciabarracom sciabarracom self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant