tutorialkit
tutorialkit copied to clipboard
feat(terminal): restrict default allowed commands to 'ls' and 'echo'
Change the default value of terminal.allowCommands from an empty array to ['ls', 'echo']. This change prevents users from running all available commands by default in tutorials, enhancing security and focus. Lesson authors can still allow all commands by specifying terminal.allowCommands: [] in the metadata.
BREAKING CHANGE: The default value of terminal.allowCommands is now restricted to ['ls', 'echo']. To allow all commands, explicitly set terminal.allowCommands: [] in the metadata.
Closes #302
Run & review this pull request in StackBlitz Codeflow.
Deploying tutorialkit-demo-page with
Cloudflare Pages
| Latest commit: |
43c24c4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cdcd4fde.tutorialkit-demo-page.pages.dev |
| Branch Preview URL: | https://ronith-hide-toggle-terminal.tutorialkit-demo-page.pages.dev |