import click


def stack_command_factory(stack_name):
    """
    Return a decorated click.command
    """
    @click.command(name=stack_name, short_help=f"{stack_name} stack commands")
    def inner_command():
        print(f"hello from inside {stack_name}")
    return inner_command