modulepackage
4.0.3
Repository: https://github.com/apiheat/akamai-cli-common.git
Documentation: pkg.go.dev
# README
akamai-cli-common
Common functions used in various akamai CLI
# Functions
CreateFlags inits default flags used across all CLIs.
CreateNewApp returns new application.
DeleteSlicefromSlice deletes one slice from another and removes duplicate objects.
ErrorCheck default error check.
GetArgumentInt retrieves argument value for int.
GetArgumentStr retrieves argument value for string.
HomeDir set default config location.
IsRegexMatch checks if our string matches regex.
IsStringInSlice returns TRUE is slice contains string and false if not.
IsTypeExpected checks if our object is of expected type.
OutputJSON displays output of query for alerts in JSON format.
PrintJSON pretty print JSON string.
RemoveIntDuplicates removes duplicated elements from int array.
RemoveStringDuplicates removes duplicated elements from strings array.
StringsSlicesDifference give you diff between 2 strings slices.
StringToIntArr transform string of comma seperated words to array of ints.
StringToStringsArr transform string of comma seperated words to array of strings.