╭────────────────────────────────────────────╮
│ 🐙 Aide pour le langage Oktopios │
╰────────────────────────────────────────────╯
📦 Commandes générales :
okp fichier.okp → Exécute un fichier Oktopios
okp 'code' → Exécute une commande en ligne
okp --help ou -h → Affiche cette aide
okp --version ou -v → Affiche la version du langage
okp --keywords ou -kw → Liste les mots-clés disponibles
okp --doc ou -d → Affiche une documentation intégrée
okp --init NomProjet → Crée une structure de projet Oktopios
🧠 Analyse et REPL :
okp --check ou -ch → Vérifie la syntaxe d'un code Oktopios
okp --repl ou --rl → Lance l'interface interactive REPL
📘 Fonctions natives :
okp --native ou -nt → Liste les fonctions natives (+doc, ex.)
okp --native-json ou -nj → Renvoie les fonctions natives en JSON
okp --native-markdown ou -nm → Génère la doc native au format Markdown
🧪 Types utilisés :
okp --types ou -tp → Affiche les types disponibles
okp --types-used ou -tu → Affiche les types utilisés dans un fichier
okp --types-detail ou -td → Affiche les variables et leurs types
okp --types-json ou -tj → Renvoie les variables et fonctions (JSON)
🔹 Exemples :
okp monfichier.okp
okp 'print(\n"Bonjour\n")'
okp --native
okp --types-used monfichier.okp
Oktopios Language Support
VS Code language support for Oktopios (.okp), including syntax highlighting,
file icons, keyword hovers, and commands backed by the okp CLI.
Marketplace extension ID: oktopios-v001.oktopios-langage.
Framework and ORM documentation
The complete Framework and ORM guides, changelogs, and examples are included
with the extension. Open the Command Palette and run Oktopios: Framework
Documentation or Oktopios: ORM Documentation to view them as Markdown.
File icons
The extension includes the Oktopios Icons file icon theme for .okp
files. To display it, open the Command Palette, run Preferences: File Icon
Theme, and select Oktopios Icons. VS Code does not automatically switch
the active icon theme when an extension is installed.
Requirements
Commands
- Oktopios: Run Current File runs the saved active
.okp file.
- Oktopios: Check Current File checks its syntax with
okp --check.
Commands run from the file's directory and pass its full path, so files in
other folders or with spaces in their names work correctly.
License
MIT. See LICENSE.md.