Versions in this module Expand all Collapse all v1 v1.2.1 Apr 4, 2026 v1.2.0 Apr 4, 2026 v1.1.0 Feb 13, 2025 v1.0.0 Feb 8, 2025 Changes in this version + var VERSION_HEADERS = map[string]string + func GenerateMachineId() string + func GetConfigPath() string + func GetDiff(path string, staged bool) string + func GetFilePath(configDir, subDir, fileName string) string + func GetHttpClient() *http.Client + func IsFileExists(path string) bool + func LoadFile(p string) ([]byte, error) + func LoadFileJson(p string, v interface{}) error + func Mkdir(path string) error + func MustJsonBytes(data interface{}) []byte + func SaveAuthToken(filePath, token, username, clientId string) error + func SaveFile(p string, data interface{}) error + func SetCurrentOSName() string + func StageChanges(path string) error + type CachedToken struct + GithubAppID string + OauthToken string + User string + type GithubUser struct + ID int + Login string + func CheckCachedToken(filePath, clientId string) (*GithubUser, error) + func FetchGithubUserInfo(token string) (*GithubUser, error) + type Headers map[string]string + type HttpOptions struct + Body interface{} + Headers *Headers + Method string + Url string + type HttpResponse struct + func HttpRequest(ctx context.Context, opts HttpOptions) (*HttpResponse, error) + func (r *HttpResponse) JsonDecode(v any) error + func (r *HttpResponse) StringDecode() (string, error)