Crate repcon

Crate repcon 

Source

Structs§

PageFormat
Represents the format of a page in the output file.

Functions§

check_size_limits
Checks if the total size of files exceeds a specified limit. If the limit is exceeded, prints an error message and exits the process.
collect_target_files
Collects a list of target files within a directory, applying custom ignore patterns. Respects ignore rules from .repconignore file if provided. Returns a vector of relative paths to the files that are not ignored.
format_file_size
Formats a file size in bytes into a human-readable string with appropriate units (B, KB, MB, GB). Returns the formatted string.
get_dir_size
Calculates the total size of a list of files, given their relative paths and root directory. Returns the total size in bytes.
split_files_into_chunks
Splits the target files into chunks based on a maximum file size. Generates multiple files if necessary, each containing a portion of the target files. Returns a vector of paths to the generated files.
upload_file_to_openai
Asynchronously uploads a file to OpenAI using the provided API key.