product

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayName

func DisplayName() string

DisplayName returns the display name of the product.

func LoginCmd

func LoginCmd() string

LoginCmd returns the login command for the product

func Name

func Name() licenseapi.ProductName

func Replace

func Replace(content string) string

Replace replaces the product name in the given usage string based on the current product.Product().

It replaces "devsy" with the specific product name:

  • "devsy platform" for product.DevsyPro
  • No replacement for product.DevsyOrg

Parameters:

  • content: The string to update

Returns:

  • The updated string with product name replaced if needed.

func ReplaceWithHeader

func ReplaceWithHeader(use, content string) string

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:

  • "devsy platform" for product.DevsyPro
  • No replacement for product.DevsyOrg

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

func StartCmd

func StartCmd() string

StartCmd returns the start command for the product

func Url

func Url() string

Url returns the url command for the product

Types

This section is empty.

Jump to

Keyboard shortcuts

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