Documentation ¶
Overview ¶
Copy from https://github.com/DavidChevallier/CRDtoKCL/blob/main/main.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupByKclFiles ¶
moveKclFiles moves files with the ".k" extension to a directory based on their API version. It walks through the specified base directory and for each file with the ".k" extension, it determines the API version based on the file name and moves the file to a subdirectory named after the API version. If the API version cannot be determined, the file is moved to a subdirectory named "unknown".
Parameters: - baseDir: The base directory to search for files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.