Documentation
¶
Index ¶
- func GenerateNewQuery(opts *GenerateQueryOptions) error
- func InitWorkspace(base, codeqlVersion string, overwriteExisting bool) (*config.QLTConfig, error)
- func RunCompile(base string, c *utils.CommonFlags) error
- func RunPackInstall(base string, c *utils.CommonFlags) error
- func RunQuery(base, queryName, database, lang, pack, format, output, additionalPacks string, ...) error
- type GenerateQueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewQuery ¶ added in v0.0.3
func GenerateNewQuery(opts *GenerateQueryOptions) error
func InitWorkspace ¶
InitWorkspace initializes a CodeQL query workspace under base. It writes codeql-workspace.yml and optionally updates qlt.conf.json when useBundle is set.
func RunCompile ¶
func RunCompile(base string, c *utils.CommonFlags) error
RunCompile compiles qlpack belonging to the selected packs using `codeql query compile`. When packs is empty, every pack listed under base is compiled; otherwise only packs whose full or unique short name matches an entry in packs are compiled.
func RunPackInstall ¶
func RunPackInstall(base string, c *utils.CommonFlags) error
RunPackInstall resolves qlpacks under the target path using `codeql pack ls` and runs `codeql pack install` for each pack whose dependencies are not fully cached. Deps are checked via `codeql pack resolve-dependencies` and `codeql resolve packs` before triggering an install.