예제 #1
0
def with_duplicates():
    """Keep duplicate filenames"""
    click.echo(examples.extractExamples())
    if config.language_name.lower() == "kotlin" or "java":
        # click.echo(examples.create_test_files())
        click.echo(
            examples.create_tasks_for_gradle(check_for_duplicates=False))
예제 #2
0
def code_extract():
    "Extract examples from book's Markdown files"
    click.echo(examples.extractExamples())
    if config.language_name == "kotlin":
        click.echo(examples.create_test_files())
        click.echo(examples.create_tasks_for_gradle())
예제 #3
0
def without_duplicates():
    "Remove duplicate filenames"
    click.echo(examples.extractExamples())
    if config.language_name.lower() == "kotlin" or "java":
        click.echo(examples.create_test_files())
        click.echo(examples.create_tasks_for_gradle(check_for_duplicates=True))