Trebejo.Git (Trebejo v1.0.0)

Copy Markdown View Source

Git utilities for repository management, configuration and synchronisation.

The implementation lives in Trebejo.Git.Local. Use that module for all Git operations (clone, commit, pull, push, branch, stash, merge, etc.).

CLI availability

This module provides helpers to check for Git-related CLI tools.

Security

All user-supplied values (commit messages, branch names, file paths) are passed as argument lists — never interpolated into shell strings — to prevent shell injection attacks.

Summary

Functions

Checks if the GitHub CLI (gh) is available.

Checks if the GitLab CLI (glab) is available.

Functions

gh_available?()

@spec gh_available?() :: boolean()

Checks if the GitHub CLI (gh) is available.

glab_available?()

@spec glab_available?() :: boolean()

Checks if the GitLab CLI (glab) is available.