commits_runbit

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTime

func ExpandTime(ts *captain.TimeValue, auth *authentication.Auth) (time.Time, error)

ExpandTime returns a timestamp based on the given "--ts" value. If the timestamp was already defined, we just return it. If "now" was given, returns "now" according to the platform. Otherwise, returns the specified timestamp or nil (which falls back on the default Platform timestamp for a given operation)

func ExpandTimeForProject

func ExpandTimeForProject(ts *captain.TimeValue, auth *authentication.Auth, proj *project.Project) (time.Time, error)

ExpandTimeForProject is the same as ExpandTime except that it ensures the returned time is either the same or later than that of the most recent commit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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