Documentation ¶
Index ¶
- Variables
- func BallerinaInstallationDir() string
- func CelleryInstallationDir() string
- func CleanAndCreateDir(dirPath string) error
- func CleanOrCreateDir(dirPath string) error
- func ContainsInStringArray(array []string, item string) bool
- func ConvertStringToTime(timeString string) time.Time
- func ConvertToAlphanumeric(input, replacement string) string
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func CopyK8sArtifacts(outPath string)
- func CreateCelleryDirStructure()
- func CreateDir(dirPath string) error
- func CreateTempExecutableBalFile(file string, action string, tmpProjectDir string) (string, error)
- func CreateTempMainBalFile(moduleDir string) error
- func ExecuteCommand(cmd *exec.Cmd) error
- func ExitWithErrorMessage(message string, err error)
- func FileExists(path string) (bool, error)
- func FindInDirectory(directory, suffix string) []string
- func FindPatternInFile(searchString string, filePath string) (bool, error)
- func FindRecursiveInDirectory(root, pattern string) ([]string, error)
- func GetDuration(startTime time.Time) string
- func GetFileSize(path string) (int64, error)
- func GetSourceName(filePath string) (string, error)
- func GetSubDirectoryNames(path string) ([]string, error)
- func GetYesOrNoFromUser(question string, withBackOption bool) (bool, bool, error)
- func IsCommandAvailable(name string) bool
- func OpenBrowser(url string) error
- func PrintInfoMessage(message string)
- func PrintSuccessMessage(message string)
- func PrintWarningMessage(message string)
- func PrintWhatsNextMessage(action string, cmd string)
- func RecursiveZip(files []string, folders []string, destinationPath string) error
- func RemoveDir(dirPath string) error
- func RenameFile(oldName, newName string) error
- func ReplaceInFile(srcFile, oldString, newString string, replaceCount int) error
- func RequestCredentials(credentialType string, usernameOverride string) (string, string, error)
- func TestMethodExists(sourceFile string) (bool, error)
- func Unzip(zipFolderName string, destinationFolderName string) error
- func UserHomeCelleryDir() string
- func UserHomeDir() string
- type BLangManager
- type Gcp
- type GcpCompute
- type GcpCore
- type LangManager
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var Bold = color.New(color.Bold).SprintFunc()
View Source
var Faint = color.New(color.Faint).SprintFunc()
View Source
var Green = color.New(color.FgGreen).SprintfFunc()
Functions ¶
func BallerinaInstallationDir ¶ added in v0.2.1
func BallerinaInstallationDir() string
func CelleryInstallationDir ¶ added in v0.2.0
func CelleryInstallationDir() string
func CleanAndCreateDir ¶ added in v0.4.0
func CleanOrCreateDir ¶
func ContainsInStringArray ¶ added in v0.2.0
func ConvertStringToTime ¶
func ConvertToAlphanumeric ¶ added in v0.4.0
func CopyK8sArtifacts ¶ added in v0.4.0
func CopyK8sArtifacts(outPath string)
func CreateCelleryDirStructure ¶ added in v0.4.0
func CreateCelleryDirStructure()
func CreateTempExecutableBalFile ¶ added in v0.3.0
func CreateTempMainBalFile ¶ added in v0.6.0
func ExecuteCommand ¶
func ExitWithErrorMessage ¶
ExitWithErrorMessage prints an error message and exits the command
func FileExists ¶
func FindInDirectory ¶
Return a list of files having its name matching the given pattern
func FindPatternInFile ¶ added in v0.6.0
func FindRecursiveInDirectory ¶ added in v0.6.0
Return a list of files having its name matching the given pattern
func GetDuration ¶
func GetFileSize ¶
func GetSourceName ¶ added in v0.6.0
func GetSubDirectoryNames ¶
func GetYesOrNoFromUser ¶ added in v0.2.0
func IsCommandAvailable ¶ added in v0.2.1
func OpenBrowser ¶ added in v0.2.0
OpenBrowser opens up the provided URL in a browser
func PrintInfoMessage ¶ added in v0.4.0
func PrintInfoMessage(message string)
PrintInfoMessage prints an information
func PrintSuccessMessage ¶
func PrintSuccessMessage(message string)
PrintSuccessMessage prints the standard command success message
func PrintWarningMessage ¶ added in v0.3.0
func PrintWarningMessage(message string)
func PrintWhatsNextMessage ¶
func RecursiveZip ¶
func RenameFile ¶
func ReplaceInFile ¶
func RequestCredentials ¶
RequestCredentials requests the credentials form the user and returns them
func TestMethodExists ¶ added in v0.3.0
TestMethodExists checks if the test method exists in ballerina file
func UserHomeCelleryDir ¶ added in v0.4.0
func UserHomeCelleryDir() string
func UserHomeDir ¶
func UserHomeDir() string
Types ¶
type BLangManager ¶ added in v0.2.0
type BLangManager struct{}
func (*BLangManager) GetExecutablePath ¶ added in v0.2.0
func (langMgr *BLangManager) GetExecutablePath() (string, error)
func (*BLangManager) Init ¶ added in v0.2.0
func (langMgr *BLangManager) Init() error
type Gcp ¶
type Gcp struct { Compute GcpCompute `json:"compute"` Core GcpCore `json:"core"` }
type GcpCompute ¶
type LangManager ¶ added in v0.2.0
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func StartNewSpinner ¶
StartNewSpinner starts a new spinner with the provided message
func (*Spinner) Pause ¶ added in v0.2.0
func (s *Spinner) Pause()
Pause the spinner and clear the line
func (*Spinner) SetNewAction ¶
SetNewAction sets the current action of a spinner
Click to show internal directories.
Click to hide internal directories.