Documentation
¶
Index ¶
- func BuildTrackerCmd(loader func(string) ([]tracker.Instance, error)) *cobra.Command
- func PrintFindJSON(w io.Writer, entry FindResultEntry) error
- func PrintFindTable(out io.Writer, entry FindResultEntry) error
- func PrintTrackerJSON(w io.Writer, entries []TrackerEntry) error
- func PrintTrackerTable(out io.Writer, entries []TrackerEntry) error
- func RunTrackerFind(ctx context.Context, out io.Writer, dir, key string, table bool, ...) error
- func RunTrackerFindWithInstances(ctx context.Context, out io.Writer, key string, instances []tracker.Instance, ...) error
- func RunTrackerList(out io.Writer, dir string, table bool, ...) error
- type FindResultEntry
- type TrackerEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTrackerCmd ¶
BuildTrackerCmd creates the "tracker" command with list and find subcommands.
func PrintFindJSON ¶
func PrintFindJSON(w io.Writer, entry FindResultEntry) error
PrintFindJSON prints a find result as JSON.
func PrintFindTable ¶
func PrintFindTable(out io.Writer, entry FindResultEntry) error
PrintFindTable prints a find result as a table.
func PrintTrackerJSON ¶
func PrintTrackerJSON(w io.Writer, entries []TrackerEntry) error
PrintTrackerJSON prints tracker entries as JSON.
func PrintTrackerTable ¶
func PrintTrackerTable(out io.Writer, entries []TrackerEntry) error
PrintTrackerTable prints tracker entries as a table.
func RunTrackerFind ¶
func RunTrackerFind(ctx context.Context, out io.Writer, dir, key string, table bool, loader func(string) ([]tracker.Instance, error)) error
RunTrackerFind finds which tracker owns a key.
Types ¶
type FindResultEntry ¶
type FindResultEntry struct {
Provider string `json:"provider"`
Project string `json:"project"`
Key string `json:"key"`
}
FindResultEntry is the JSON output structure for tracker find.
Click to show internal directories.
Click to hide internal directories.