Commit 13a62de5 authored by Romain Casati's avatar Romain Casati
Browse files

Get supported languages list from basthon-kernel module once installed.

parent 3583bb3d
......@@ -5,6 +5,7 @@ current directory.
from pathlib import Path
import shutil
import argparse
import sys
from . import implementation
......@@ -16,8 +17,19 @@ def main():
help='Install Basthon kernel in current directory',
action="store_true")
parser.add_argument('--languages',
help='Get the list of kanguages supported in Basthon',
action="store_true")
args = parser.parse_args()
if args.languages:
languages = [f.name[len('basthon-'):-len('.min.js')]
for f in (Path(__file__).parent / 'data').glob(
'basthon-*.min.js')]
print('\n'.join(languages), end='')
return
if args.install:
print(f'Installing Basthon kernel {implementation} in current directory')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment