Documentation ¶
Overview ¶
Package config groups the goproject configuration and profile management mechanism
Package config groups the configuration and profile management mechanism ¶
Package config groups the configuration and profile management mechanism ¶
Package config groups the configuration and profile management mechanism
Index ¶
Constants ¶
const ( // DefaultTargetProjectLocation is the default location to deploy the new project in DefaultTargetProjectLocation string = "." // DefaultConfigProfileKeyName is the application's configuration entry label for the default profile to use DefaultConfigProfileKeyName string = "defaultprofile" // DefaultAutoUpdateKeyName is the application's configuration entry label for auto-updates DefaultAutoUpdateKeyName string = "autoupdate" // DefaultAutoUpdateValue is the default value for auto-updates DefaultAutoUpdateValue string = "true" // DirMode is the default file permissions mode DirMode os.FileMode = 0700 // FileMode is the default directory permissions mode FileMode os.FileMode = 0600 )
Variables ¶
This section is empty.
Functions ¶
func CreateNewProfileFile ¶
CreateNewProfileFile creates a new file for the given profile name if it does not exist
func EditProfile ¶
EditProfile opens a text editor to the specified profile configuration file
func GetProfileDirName ¶
GetProfileDirName returns the path to the goproject profile directory
func Initialise ¶
func Initialise()
Initialise reads or creates configurations in order to aliment the program with needed input
func ListProfiles ¶
ListProfiles returns the list of available profiles
func SetDefaultProfile ¶
SetDefaultProfile sets the given profile as default
Types ¶
type Profile ¶
Profile associates an Author to a configuration file, describing a desired project layout
func LoadProfile ¶
LoadProfile loads a profile from disk and returns a populated profile structure