Expand description
Prerequisites checking for RepoLens initialization
This module verifies that required tools and configurations are available before running RepoLens commands.
Structs§
- Check
Options - Options for running prerequisite checks
- Check
Result - Result of a single prerequisite check
- Prerequisites
Report - Aggregated report of all prerequisite checks
Enums§
- Check
Level - Level of importance for a prerequisite check
- Check
Status - Status of a prerequisite check
Functions§
- check_
gh_ authenticated - Check if GitHub CLI is authenticated
- check_
gh_ installed - Check if GitHub CLI (gh) is installed
- check_
git_ installed - Check if git is installed
- check_
github_ auth_ available - Check if any GitHub authentication method is available Returns Ok if either GITHUB_TOKEN is set or gh CLI is authenticated
- check_
github_ token - Check if GITHUB_TOKEN environment variable is set
- check_
is_ git_ repo - Check if the current directory is a git repository
- check_
remote_ is_ github - Check if the remote origin is a GitHub repository
- check_
remote_ origin - Check if a remote origin is configured
- display_
error_ summary - Display error summary for failed required checks
- display_
report - Display the full prerequisites report
- display_
warnings - Display warnings for failed optional checks
- get_
repo_ info - Get repository info (owner/name) from GitHub CLI
- is_
gh_ available - Check if gh CLI is available and authenticated
- is_
github_ auth_ available - Check if any GitHub authentication method is available Returns true if GITHUB_TOKEN is set or gh CLI is authenticated
- is_
github_ token_ available - Check if GITHUB_TOKEN environment variable is set
- run_
all_ checks - Run all prerequisite checks