Documentation
¶
Index ¶
- func ConstructProjectName(ctx tcontext.TransferMetadata, ...) (string, string)
- func FlagValidation(cmd *cobra.Command, adapter types.AdapterType, adapterPrefix types.FlagPrefix) error
- func GetBinaryPath() (string, error)
- func IsValidURL(input string) bool
- func ParseGithubURL(githubURL string) (owner, repo string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructProjectName ¶ added in v0.0.3
func FlagValidation ¶ added in v0.0.3
func FlagValidation(cmd *cobra.Command, adapter types.AdapterType, adapterPrefix types.FlagPrefix) error
FlagValidation validates that each adapter should contain flag of respective adapters only
func GetBinaryPath ¶
func IsValidURL ¶
isValidURL checks if the given string is a valid URL
func ParseGithubURL ¶
ParseGithubURL extracts the repository owner, repo name. For URLs like "https://github.com/interlynk-io/sbomqs", returns "interlynk-io", "sbomqs", nil).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.