Documentation ¶
Index ¶
- Variables
- func CanActivateProfile() bool
- func ConfigFileLocation() (string, error)
- func Contains(s []string, e string) bool
- func HomeDir() (string, error)
- func Pluralize(noun string, count int64) string
- func RackDir() (string, error)
- func RemoveFromList(list []string, item string) []string
- func Usage(commandPrefix, action, mandatoryFlags string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit string
Commit is the commit this build comes from
View Source
var Name = "rack"
Name is the name of the CLI
UserAgent is the user-agent used for each HTTP request
View Source
var Version string
Version is the current CLI version
Functions ¶
func CanActivateProfile ¶
func CanActivateProfile() bool
func ConfigFileLocation ¶
func Pluralize ¶
Pluralize will plurarize a given noun according to its number. For example, 0 servers were deleted; 1 account updated.
func RackDir ¶
RackDir returns the location of the `rack` directory. This directory is for storing `rack`-specific information such as the cache or a config file.
func RemoveFromList ¶
RemoveFromList removes an element from a slice and returns the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.