Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/changelog/releaseGoal"

Index

Type aliases

ExecuteLogger

ExecuteLogger: function

Type declaration

    • (l: ProgressLog): Promise<ExecuteGoalResult>
    • Parameters

      • l: ProgressLog

      Returns Promise<ExecuteGoalResult>

Functions

changelogAddRelease

  • changelogAddRelease(changelog: string, version: string): string
  • Modify changelog text to add release.

    Parameters

    • changelog: string

      original changelog content

    • version: string

      release version

    Returns string

    new changelog content

executeLoggers

  • executeLoggers(els: ExecuteLogger[], progressLog: ProgressLog): Promise<ExecuteGoalResult>
  • Execute an array of logged commands, creating a line-delimited progress log beforehand, flushing after each command, and closing it at the end. If any command fails, bail out and return the failure result. Otherwise return Success.

    Parameters

    Returns Promise<ExecuteGoalResult>

executeReleaseChangelog

  • executeReleaseChangelog(): ExecuteGoal

formatDate

  • formatDate(date?: Date): string
  • Return today's date in a format that does not suck.

    Parameters

    • Optional date: Date

    Returns string

    today's date in YYYY-MM-DD format

gitExecuteLogger

  • gitExecuteLogger(gp: GitCommandGitProject, op: function): ExecuteLogger
  • Transform a GitCommandGitProject operation into an ExecuteLogger suitable for execution by executeLoggers. The operation is awaited and any thrown exceptions are caught and transformed into an error result. The returned standard out and standard error are written to the log. If an error occurs, it is logged. The result of the operation is transformed into a ExecuteGoalResult. If an error is returned or exception caught, the returned code is guaranteed to be non-zero.

    Parameters

    • gp: GitCommandGitProject
    • op: function
        • (): Promise<GitCommandGitProject>
        • Returns Promise<GitCommandGitProject>

    Returns ExecuteLogger

loglog

  • loglog(log: ProgressLog, msg: string): Promise<void>

preReleaseVersion

  • preReleaseVersion(gi: GoalInvocation): string | undefined

releaseOrPreRelease

  • releaseOrPreRelease(version: string, gi: GoalInvocation): string

releaseVersion

  • releaseVersion(version: string): string

rwlcVersion

  • rwlcVersion(gi: GoalInvocation): Promise<string>

spawnExecuteLogger

  • Transform a SpawnWatchCommand into an ExecuteLogger suitable for execution by executeLoggers. The operation is awaited and any thrown exceptions are caught and transformed into an error result. If an error occurs, it is logged. The result of the operation is transformed into a ExecuteGoalResult. If an exception is caught, the returned code is guaranteed to be non-zero.

    Parameters

    Returns ExecuteLogger

Generated using TypeDoc