Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/k8s/sync/previousSpecVersion"

Index

Functions

previousSpecVersion

  • previousSpecVersion(baseDir: string, specPath: string, sha: string): Promise<string>
  • Use the Git CLI to fetch the previous version of the spec. If the previous does not exist or an error occurs fetching it, an empty string is returned.

    Parameters

    • baseDir: string

      Project repository base directory

    • specPath: string

      Path to spec file relative to baseDir

    • sha: string

    Returns Promise<string>

Generated using TypeDoc