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))
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())
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))