Skip to content

source_code_intel

dandy.cli.intelligence.intel.source_code_intel

SourceCodeIntel

Bases: BaseIntel

file_name_with_extension instance-attribute

language instance-attribute

code instance-attribute

write_to_directory

Source code in dandy/cli/intelligence/intel/source_code_intel.py
def write_to_directory(self, dir_path: Path | str) -> None:
    write_to_file(
        file_path=Path(dir_path) / self.file_name_with_extension,
        content=self.code,
    )