sync

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

func EnsureIndexSync added in v0.7.3

func EnsureIndexSync(indices cache.InfoFile, indexType string, fail bool) (bool, error)

EnsureIndexSync checks if the given index is synced, and if not, prompts the user to sync it. It returns true if the index is available (either already synced or newly synced), and false otherwise.

In non-interactive contexts (CI, --no-interactive, --json) it refuses to download silently — the caller must have synced the index ahead of time via `vulncheck offline sync --add <name>`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL