Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Name ¶
func Name() licenseapi.ProductName
func Replace ¶
Replace replaces the product name in the given usage string based on the current product.Product().
It replaces "loft" with the specific product name:
- "devpod pro" for product.DevPodPro
- "vcluster pro" for product.VClusterPro
- No replacement for product.Loft
This handles case insensitive replaces like "loft" -> "devpod pro".
It also handles case sensitive replaces:
- "Loft" -> "DevPod.Pro" for product.DevPodPro
- "Loft" -> "vCluster.Pro" for product.VClusterPro
This allows customizing command usage text for different products.
Parameters:
- content: The string to update
Returns:
- The updated string with product name replaced if needed.
func ReplaceWithHeader ¶
ReplaceWithHeader replaces the "loft" product name in the given usage string with the specific product name based on product.Product(). It also adds a header with padding around the product name and usage.
The product name replacements are:
- "devpod pro" for product.DevPodPro
- "vcluster pro" for product.VClusterPro
- No replacement for product.Loft
This handles case insensitive replaces like "loft" -> "devpod pro".
It also handles case sensitive replaces:
- "Loft" -> "DevPod.Pro" for product.DevPodPro
- "Loft" -> "vCluster.Pro" for product.VClusterPro
Parameters:
- use: The usage string
- content: The content string to run product name replacement on
Returns:
- The content string with product name replaced and header added
func ResetPassword ¶
func ResetPassword() string
ResetPassword returns the reset password command for the product
Types ¶
This section is empty.