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 "devsy" with the specific product name:
- "devpod pro" for product.DevPodPro
- "devsy platform" for product.DevsyPro
- No replacement for product.Devsy
This handles case insensitive replaces like "devsy" -> "devpod pro".
It also handles case sensitive replaces:
- "Devsy" -> "DevPod.Pro" for product.DevPodPro
- "Devsy" -> "vCluster Platform" for product.DevsyPro
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 "devsy" 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
- "devsy platform" for product.DevsyPro
- No replacement for product.Devsy
This handles case insensitive replaces like "devsy" -> "devpod pro".
It also handles case sensitive replaces:
- "Devsy" -> "DevPod.Pro" for product.DevPodPro
- "Devsy" -> "vCluster Platform" for product.DevsyPro
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.