Skip to content
Myr

Updated the repo example a little

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 2e7c39c · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:examples/repo/repo.py+4 added-4 removed
123 unmodified lines
124125@cli.command(short_help='Copies files.')126@click.option('--force', is_flag=True,127 help='forcibly copy over an existing managed file')128@click.argument('src', nargs=-1)129@click.argument('dst')128@click.argument('src', nargs=-1, type=click.Path())129@click.argument('dst', type=click.Path())130@pass_repo131def copy(repo, src, dst):131def copy(repo, src, dst, force):132 """Copies one or multiple files to a new location. This copies all133 files from SRC to DST.134 """135 for fn in src:136 click.echo('Copy from %s -> %s' % (src, dst))136 click.echo('Copy from %s -> %s' % (fn, dst))