gitmon

package module
v0.0.0-...-4eb6901 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 8 Imported by: 0

README

gitmon

Monitor git repos for corresponding upstream changes

Requirements:
  • git installed locally on the system. Project uses raw git commands to get the latest updates
Running:

The project binary can be installed as a Windows service using something like nssm or windows command installutil or SC Ref: StackOverflow.

On linux systemd can be used to package it and then run as a background service. I do not have a Linux machine so the support is not added out of the box

Note:

When running as a service, program should run under the user which as access to the git project

Standalone local run

gitmon can be run directly in terminal as well.

Build locally

Requirements:

  • go 1.20
  • Make
make all

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefLogCfg = `` /* 278-byte string literal not displayed */

Functions

func Error

func Error(err error, message string)

func FetchLatestCommits

func FetchLatestCommits(repoPath string) (string, string, error)

func LoadConfig

func LoadConfig() ([]string, error)

func Log

func Log(message string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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