licence_audit/cli
Types
pub type Checks {
Licences
Vulnerabilities
AllChecks
}
Constructors
-
Licences -
Vulnerabilities -
AllChecks
pub type CliAction {
RunReport(ReportOptions)
RunAudit(Options)
UpdateConfig(UpdateOptions)
RunSbom(SbomOptions)
RunVulns(VulnsOptions)
RunNotices(NoticesOptions)
ShowVersion
InvalidUsage(String)
}
Constructors
-
RunReport(ReportOptions) -
RunAudit(Options) -
UpdateConfig(UpdateOptions) -
RunSbom(SbomOptions) -
RunVulns(VulnsOptions) -
RunNotices(NoticesOptions) -
ShowVersion -
InvalidUsage(String)
pub type DependencyScope {
Prod
All
}
Constructors
-
Prod -
All
pub type NoticesOptions {
NoticesOptions(
manifest_path: option.Option(String),
config_path: option.Option(String),
ignore_config: Bool,
verbosity: progress.Verbosity,
color: color.Mode,
output: option.Option(String),
scope: DependencyScope,
no_cache: Bool,
cache_dir: option.Option(String),
)
}
Constructors
-
NoticesOptions( manifest_path: option.Option(String), config_path: option.Option(String), ignore_config: Bool, verbosity: progress.Verbosity, color: color.Mode, output: option.Option(String), scope: DependencyScope, no_cache: Bool, cache_dir: option.Option(String), )
pub type Options {
Options(
manifest_path: option.Option(String),
config_path: option.Option(String),
ignore_config: Bool,
check: Bool,
verbosity: progress.Verbosity,
color: color.Mode,
no_cache: Bool,
cache_dir: option.Option(String),
checks: Checks,
vuln_severity: option.Option(String),
vuln_block_unknown: option.Option(Bool),
scope: DependencyScope,
format: ReportFormat,
)
}
Constructors
-
Options( manifest_path: option.Option(String), config_path: option.Option(String), ignore_config: Bool, check: Bool, verbosity: progress.Verbosity, color: color.Mode, no_cache: Bool, cache_dir: option.Option(String), checks: Checks, vuln_severity: option.Option(String), vuln_block_unknown: option.Option(Bool), scope: DependencyScope, format: ReportFormat, )
pub type ReportFormat {
Text
Json
}
Constructors
-
Text -
Json
pub type ReportOptions {
ReportOptions(
manifest_path: option.Option(String),
config_path: option.Option(String),
ignore_config: Bool,
verbosity: progress.Verbosity,
color: color.Mode,
no_cache: Bool,
cache_dir: option.Option(String),
scope: DependencyScope,
format: ReportFormat,
)
}
Constructors
-
ReportOptions( manifest_path: option.Option(String), config_path: option.Option(String), ignore_config: Bool, verbosity: progress.Verbosity, color: color.Mode, no_cache: Bool, cache_dir: option.Option(String), scope: DependencyScope, format: ReportFormat, )
pub type SbomFormat {
CyclonedxJson
SpdxJson
}
Constructors
-
CyclonedxJson -
SpdxJson
pub type SbomOptions {
SbomOptions(
manifest_path: option.Option(String),
verbosity: progress.Verbosity,
color: color.Mode,
no_cache: Bool,
cache_dir: option.Option(String),
output: option.Option(String),
offline: Bool,
reproducible: Bool,
with_vulns: Bool,
format: SbomFormat,
license_text: Bool,
)
}
Constructors
-
SbomOptions( manifest_path: option.Option(String), verbosity: progress.Verbosity, color: color.Mode, no_cache: Bool, cache_dir: option.Option(String), output: option.Option(String), offline: Bool, reproducible: Bool, with_vulns: Bool, format: SbomFormat, license_text: Bool, )
pub type UpdateOptions {
UpdateOptions(
manifest_path: option.Option(String),
config_path: option.Option(String),
verbosity: progress.Verbosity,
color: color.Mode,
no_cache: Bool,
cache_dir: option.Option(String),
allow: option.Option(List(String)),
deny: option.Option(List(String)),
dry_run: Bool,
)
}
Constructors
-
UpdateOptions( manifest_path: option.Option(String), config_path: option.Option(String), verbosity: progress.Verbosity, color: color.Mode, no_cache: Bool, cache_dir: option.Option(String), allow: option.Option(List(String)), deny: option.Option(List(String)), dry_run: Bool, )
pub type VulnsOptions {
VulnsOptions(
manifest_path: option.Option(String),
config_path: option.Option(String),
ignore_config: Bool,
verbosity: progress.Verbosity,
color: color.Mode,
scope: DependencyScope,
format: ReportFormat,
)
}
Constructors
-
VulnsOptions( manifest_path: option.Option(String), config_path: option.Option(String), ignore_config: Bool, verbosity: progress.Verbosity, color: color.Mode, scope: DependencyScope, format: ReportFormat, )
Values
pub fn execute(
args: List(String),
stdout_color_level: tty.ColorLevel,
stderr_color_level: tty.ColorLevel,
) -> Result(@internal Out(CliAction), String)
pub fn normalize_args(args: List(String)) -> List(String)
pub fn recognized_checks(
args: List(String),
) -> option.Option(Checks)
Preserve valid check selection when JSON usage fails before action parsing.
pub fn recognized_json_command(
args: List(String),
) -> option.Option(String)
Recognize the selected JSON format even when another argument is invalid. Callers must retain normal help output when execution returns Glint help.