~homeworkprod/byceps

47dbc3b075080f50ed26bcf7930481a65c4f5a25 — Jochen Kupperschmidt 7 days ago d3f0f68
Pass required `ctx` along
1 files changed, 2 insertions(+), 2 deletions(-)

M scripts/copy_snippets.py
M scripts/copy_snippets.py => scripts/copy_snippets.py +2 -2
@@ 30,7 30,7 @@ def execute(ctx, source_site, target_site, snippet_names):
    ]

    for snippet_version in snippet_versions:
        copy_snippet(target_scope, snippet_version)
        copy_snippet(target_scope, snippet_version, ctx)

    click.secho('Done.', fg='green')



@@ 49,7 49,7 @@ def get_snippet_version(source_scope, snippet_name):
    return snippet_version


def copy_snippet(target_scope, snippet_version):
def copy_snippet(target_scope, snippet_version, ctx):
    snippet_type = snippet_version.snippet.type_

    if snippet_type == SnippetType.document: