// GetMetadata Get the metadata from the standard location, if any exists
GetMetadata Get the metadata from the standard location, if any exists
// GetMetadata Get the metadata from the standard location if any exists
func GetMetadata() (*Metadata, error) {
	path, err := install.GetInstallPath()
	if err != nil {
		return nil, err
	}
	metadataPath := filepath.Join(path, cliMetadataFile)
	exists, err := io.Exists(metadataPath)
	if err != nil {
		return nil, err
	}
	if exists {
		return readMetadata(metadataPath)
	}
	return nil, nil
}
func GetMetadata ( ) ( * Metadata , error ) { path , err := install . GetInstallPath ( ) if err != nil { return nil , err } metadataPath := filepath . Join ( path , cliMetadataFile ) exists , err := io . Exists ( metadataPath ) if err != nil { return nil , err } if exists { return readMetadata ( metadataPath ) } return nil , nil }
GetMetadata Get the metadata from the standard location, if any exists
GetMetadata Get the metadata from the standard location if any exists