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

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

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,
  )
}

Constructors

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,
  )
}

Constructors

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,
    license_text: Bool,
  )
}

Constructors

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),
  )
}

Constructors

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,
  )
}

Constructors

Values

pub fn app() -> @internal Glint(CliAction)
pub fn normalize_args(args: List(String)) -> List(String)
✨ Search Document