Skip to content

rbonthond/click-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

click-groups

Build status of the master branch Package license Coverage report

This is experimental, which is why it's not on PyPI

Add (groups) to a list of click group commands.

In your click app:

import click
from click_groups import ClickCommandGroup

@click.group(cls=ClickAliasedGroup)
def cli():
    pass

@cli.command(group=['group1', 'group2'])
def foo():
    """Run a command."""
    click.echo('foo')

Will result in:

Usage: cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Group1 commands:
  foo   Run a command.

Group2 commands:
  foo   Run a command.

About

Group list of click commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages