Created
March 24, 2024 12:04
Revisions
-
asksven created this gist
Mar 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,52 @@ import click # Group for 'project' commands @click.group() def project(): pass # Project commands @project.command() def list(): click.echo("Listing projects") @project.command() def create(name): click.echo(f"Creating project: {name}") @project.command() def update(name): click.echo(f"Updating project: {name}") @project.command() def add(name): click.echo(f"Adding to project: {name}") # Group for 'module' commands @click.group() def module(): pass # Similarly define commands for 'module' # ... # Group for 'template' commands @click.group() def template(): pass # Similarly define commands for 'template' # ... # Main CLI entry point @click.group() def cli(): pass # Add groups to the main CLI cli.add_command(project) cli.add_command(module) cli.add_command(template) if __name__ == '__main__': cli()