Git Authentication & Development Interface Assistant & Navigator
Guardian: Git Authentication & Development Assistant
A comprehensive tool for managing Git authentication, security,
and development workflows.
Authentication management commands
cli auth setup-github
: Configure GitHub Personal Access Token (PAT) for authenticationcli auth setup-ssh
: Generate and configure SSH keyscli auth status
: Check status of all authentication methodscli auth validate-github
: Validate GitHub token and show its capabilitiescli auth list
: List configured authentication methodscli auth debug-tokens
: Debug token storage (development only)cli auth debug-service
: Debug auth service configurationcli auth setup-signing
: Setup GPG key for commit signing
Configuration management commands
cli config set
: Set a configuration valuecli config get
: Get a configuration valuecli config unset
: Remove a configuration valuecli config init
: Initialize configuration with defaults
Pre-commit hook management
cli hooks templates
: List available hook templatescli hooks install
: Install Git hooks using specified templatecli hooks list
: List installed hooks and their statuscli hooks show
: Show content of an installed hookcli hooks remove
: Remove an installed hook
Code formatting commands
cli format run
: Format code using configured formatterscli format configure
: Configure formatting settingscli init
: Initialize Guardian in the current directory
Repository and remote management commands
cli repo create
: Create a remote repository for the current projectcli repo connect
: Connect existing repository to a remotecli repo sync
: Synchronize repository configuration across systemscli repo apply-sync
: Apply synchronized configuration from .guardian-sync.yml
pip install deadlight-guardian
# Initialize Guardian
guardian init
# Setup authentication
guardian auth setup-ssh
guardian auth setup-github
# Check status
guardian auth status
Here are some common use cases:
# Install Guardian
pip install guardian
# Setup authentication
guardian auth setup-ssh
guardian auth setup-github
# Verify setup
guardian auth status
# View current configuration
guardian config get
# Set configuration
guardian config set user.name "Your Name"
guardian config set user.email "your@email.com"
# Install hooks
guardian hooks install
# View installed hooks
guardian hooks list
For more examples and detailed documentation, visit our documentation site.
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.