-
André MAYORAZ authoredAndré MAYORAZ authored
example_alias.py 659 B
# SPDX-FileCopyrightText: Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
#
# SPDX-License-Identifier: BSD-3-Clause
"""An example script to demonstrate config-file option readout."""
# To improve loading performance, we recommend you only import the very
# essential packages needed to start the CLI. Defer all other imports to
# within the function implementing the command.
import click
import clapp.click
@click.group(cls=clapp.click.AliasedGroup)
def main():
pass
@main.command()
def push():
click.echo("push was called")
@main.command()
def pop():
click.echo("pop was called")
if __name__ == "__main__":
main()