Loading src/climax/__main__.py +29 −1 Original line number Diff line number Diff line Loading @@ -764,7 +764,7 @@ def basex(): subprocess.run(process_args) @app.command(help=_("Liste les templates du bundle de vocabulaire en cours")) @app.command(help=_("Liste les templates du bundle de vocabulaire en cours.")) def templates_list(): check_cwd_is_max() config = max_config() Loading @@ -788,6 +788,34 @@ def templates_list(): print(item) @app.command( help=_( "Liste les fichiers statiques (js, css, etc) du bundle de vocabulaire en cours." ) ) def static_list(): check_cwd_is_max() config = max_config() vocab_bundle = config.vocabulary_bundle tpl_dir = Path( os.getcwd(), ".max", "basex", "webapp", "max", "bundles", vocab_bundle, "static", ) tpls_list = [] offset = len(str(tpl_dir)) for f in _scan_dir(tpl_dir): if f.is_file(): tpls_list.append(str(f)[offset:]) for item in sorted(tpls_list): print(item) @app.command(help=_("Liste les projets gérés par climax")) def projects(): console = Console() Loading Loading
src/climax/__main__.py +29 −1 Original line number Diff line number Diff line Loading @@ -764,7 +764,7 @@ def basex(): subprocess.run(process_args) @app.command(help=_("Liste les templates du bundle de vocabulaire en cours")) @app.command(help=_("Liste les templates du bundle de vocabulaire en cours.")) def templates_list(): check_cwd_is_max() config = max_config() Loading @@ -788,6 +788,34 @@ def templates_list(): print(item) @app.command( help=_( "Liste les fichiers statiques (js, css, etc) du bundle de vocabulaire en cours." ) ) def static_list(): check_cwd_is_max() config = max_config() vocab_bundle = config.vocabulary_bundle tpl_dir = Path( os.getcwd(), ".max", "basex", "webapp", "max", "bundles", vocab_bundle, "static", ) tpls_list = [] offset = len(str(tpl_dir)) for f in _scan_dir(tpl_dir): if f.is_file(): tpls_list.append(str(f)[offset:]) for item in sorted(tpls_list): print(item) @app.command(help=_("Liste les projets gérés par climax")) def projects(): console = Console() Loading