Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
ConfigFilePath returns the path to qlt.conf.json under the base directory.
Types ¶
type CodeQLPackConfiguration ¶
type CodeQLPackConfiguration struct {
Name string `json:"name"`
Bundle bool `json:"bundle,omitempty"`
Publish bool `json:"publish,omitempty"`
ReferencesBundle bool `json:"referencesBundle,omitempty"`
}
CodeQLPackConfiguration represents a single CodeQL pack entry in qlt.conf.json.
type QLTConfig ¶
type QLTConfig struct {
CodeQLCLIVersion string `json:"version,omitempty"`
CodeQLPackConfiguration []CodeQLPackConfiguration `json:"packs,omitempty"`
// contains filtered or unexported fields
}
QLTConfig holds the QLT configuration loaded from qlt.conf.json.
func LoadFromFile ¶
LoadFromFile reads qlt.conf.json from the given base directory. Returns nil if the file does not exist.
func MustLoadFromFile ¶
MustLoadFromFile loads the config or exits with an error.
func (*QLTConfig) SaveToFile ¶
SaveToFile writes the config to qlt.conf.json in the base directory, creating the directory if it does not exist.
func (*QLTConfig) UpsertPackConfig ¶
UpsertPackConfig adds or updates the CodeQLPackConfiguration entry for the given name.
Click to show internal directories.
Click to hide internal directories.