crd

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

func GroupByKclFiles(target string, packageName string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL