### Setup Fish Completion for brew-update-helper Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Creates the necessary directory for Fish shell completions for brew-update-helper. ```fish # Create completion directory mkdir -p ~/.config/fish/completions ``` -------------------------------- ### Setup Bash Completion for brew-update-helper (System-wide) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Installs Bash completion scripts for brew-update-helper system-wide for both macOS (Homebrew) and Linux systems. ```bash # For macOS with Homebrew bash-completion if [ -d /usr/local/etc/bash_completion.d ]; then sudo mkdir -p /usr/local/etc/bash_completion.d brew-update-helper completion bash | sudo tee /usr/local/etc/bash_completion.d/brew-update-helper fi # For Linux systems if [ -d /etc/bash_completion.d ]; then sudo mkdir -p /etc/bash_completion.d brew-update-helper completion bash | sudo tee /etc/bash_completion.d/brew-update-helper fi ``` -------------------------------- ### Setup Zsh Completion for brew-update-helper (System-wide) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Installs Zsh completion scripts for brew-update-helper system-wide by creating the appropriate directory and copying the generated completion file. ```zsh # Find your zsh completion directory ZSH_COMP_DIR="/usr/local/share/zsh/site-functions" # macOS with Homebrew # or ZSH_COMP_DIR="/usr/share/zsh/site-functions" # Linux # Install completion sudo mkdir -p "$ZSH_COMP_DIR" brew-update-helper completion zsh | sudo tee "$ZSH_COMP_DIR/_brew-update-helper" ``` -------------------------------- ### Setup Bash Completion for brew-update-helper (Current User) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Installs Bash completion scripts for brew-update-helper for the current user by creating a directory, generating the script, and sourcing it in .bashrc. ```bash # Create completion directory mkdir -p ~/.bash_completion.d # Generate and install completion script brew-update-helper completion bash > ~/.bash_completion.d/brew-update-helper # Add to your ~/.bashrc or ~/.bash_profile echo 'source ~/.bash_completion.d/brew-update-helper' >> ~/.bashrc # Reload your shell source ~/.bashrc ``` -------------------------------- ### Install brew-update-helper using Installation Script Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Clones the repository and uses the provided install.sh script to install the tool for the current user, system-wide, or to uninstall it. Includes options for help. ```bash git clone https://github.com/anasmirza534/brew-update-helper.git cd brew-update-helper # Install for current user (default) ./install.sh # Install system-wide (requires sudo) ./install.sh --system # Uninstall ./install.sh --uninstall # Get help ./install.sh --help ``` -------------------------------- ### Manual Build and Install brew-update-helper with Rust Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Clones the repository and uses Cargo to build and install the brew-update-helper tool, either for the current user or system-wide. ```rust git clone https://github.com/anasmirza534/brew-update-helper.git cd brew-update-helper # Option A: Install for current user via Cargo cargo install --path . # Option B: Build and install system-wide manually cargo build --release sudo cp target/release/brew-update-helper /usr/local/bin/ ``` -------------------------------- ### Build and Install brew-update-helper using Makefile Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Clones the repository and uses the Makefile to build an optimized release binary, install it for the current user or system-wide, uninstall it, or view available commands. ```makefile git clone https://github.com/anasmirza534/brew-update-helper.git cd brew-update-helper # Build optimized release binary make build # Install for current user make install-user # Install system-wide (requires sudo) make install # Uninstall system-wide make uninstall # See all available commands make ``` -------------------------------- ### Verify brew-update-helper Installation Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Commands to verify that the brew-update-helper has been installed correctly by checking its version and help output. ```bash brew-update-helper --version brew-update-helper --help ``` -------------------------------- ### Setup Zsh Completion for brew-update-helper (Current User) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Installs Zsh completion scripts for brew-update-helper for the current user by creating a directory, generating the script, and updating the fpath in .zshrc. ```zsh # Create completion directory mkdir -p ~/.zsh/completions # Generate completion script brew-update-helper completion zsh > ~/.zsh/completions/_brew-update-helper # Add to your ~/.zshrc (if not already present) echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc echo 'autoload -U compinit && compinit' >> ~/.zshrc # Reload your shell source ~/.zshrc ``` -------------------------------- ### Generate and Install Elvish Completion Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This snippet guides users through setting up Elvish shell completion. It involves creating the Elvish library directory, generating the completion script, and adding it to the Elvish configuration file. ```bash # Create elvish lib directory mkdir -p ~/.config/elvish/lib # Generate completion script brew-update-helper completion elvish > ~/.config/elvish/lib/brew-update-helper.elv # Add to your ~/.config/elvish/rc.elv echo 'use ./lib/brew-update-helper' >> ~/.config/elvish/rc.elv ``` -------------------------------- ### Generate and Install Fish Completion Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This snippet shows how to generate the completion script for the Fish shell and install it in the appropriate directory. After installation, restarting the Fish shell will automatically load the completions. ```bash brew-update-helper completion fish > ~/.config/fish/completions/brew-update-helper.fish ``` -------------------------------- ### Install brew-update-helper Binary (macOS Intel) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Downloads the latest pre-compiled binary for macOS with Intel architecture, extracts it, makes it executable, and moves it to the system's PATH. ```bash curl -L "https://github.com/anasmirza534/brew-update-helper/releases/latest/download/brew-update-helper-v0.1.2-macos-x86_64.tar.gz" -o release.tar.gz tar -xzf release.tar.gz chmod +x brew-update-helper sudo mv brew-update-helper /usr/local/bin/ rm release.tar.gz ``` -------------------------------- ### Auto-detect and Install brew-update-helper (macOS) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Automatically detects the macOS architecture (Apple Silicon or Intel), fetches the correct latest release binary from GitHub, and installs it. ```bash # Automatically detect your macOS architecture and download latest release ARCH=$(uname -m) if [ "$ARCH" = "arm64" ]; then ARCH_SUFFIX="aarch64" elif [ "$ARCH" = "x86_64" ]; then ARCH_SUFFIX="x86_64" else echo "Unsupported architecture: $ARCH" exit 1 fi # Get latest release tag and construct filename LATEST_TAG=$(curl -s https://api.github.com/repos/anasmirza534/brew-update-helper/releases/latest | grep \"tag_name:\" | sed -E 's/.*\"([^\"]+)\".*/\1/') RELEASE_FILE="brew-update-helper-${LATEST_TAG}-macos-${ARCH_SUFFIX}.tar.gz" curl -L "https://github.com/anasmirza534/brew-update-helper/releases/latest/download/$RELEASE_FILE" -o release.tar.gz tar -xzf release.tar.gz chmod +x brew-update-helper sudo mv brew-update-helper /usr/local/bin/ rm release.tar.gz ``` -------------------------------- ### Install brew-update-helper Binary (macOS Apple Silicon) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md Downloads the latest pre-compiled binary for macOS with Apple Silicon architecture, extracts it, makes it executable, and moves it to the system's PATH. ```bash curl -L "https://github.com/anasmirza534/brew-update-helper/releases/latest/download/brew-update-helper-v0.1.2-macos-aarch64.tar.gz" -o release.tar.gz tar -xzf release.tar.gz chmod +x brew-update-helper sudo mv brew-update-helper /usr/local/bin/ rm release.tar.gz ``` -------------------------------- ### Generate and Install PowerShell Completion Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This section details the process of creating the necessary PowerShell profile directory and then generating the completion script for PowerShell. The script is appended to the user's PowerShell profile file. ```bash # Create PowerShell profile directory mkdir -p ~/.config/powershell # Generate completion script brew-update-helper completion powershell >> ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ``` -------------------------------- ### Troubleshoot 'Permission denied' Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This part helps resolve 'Permission denied' errors by ensuring the brew-update-helper binary has execute permissions. It also covers adding the Cargo bin directory to the PATH if the tool was installed via Cargo. ```bash # Ensure the binary is executable chmod +x /usr/local/bin/brew-update-helper # If installed in user directory, ensure ~/.cargo/bin is in PATH echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc source ~/.bashrc ``` -------------------------------- ### Troubleshoot 'Homebrew not found' Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This section addresses issues where Homebrew is not recognized. It includes a command to check if 'brew' is in the PATH and provides the installation command for Homebrew if it's not found. ```bash # Ensure Homebrew is properly installed and in PATH which brew || echo "Homebrew not found in PATH" # If missing, install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` -------------------------------- ### Troubleshoot Shell Completion Not Working (Bash/Zsh/Fish) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This provides specific troubleshooting steps for shell completion issues across different shells. For Bash, it suggests installing `bash-completion`. For Zsh, it advises enabling `compinit`. For Fish, it reminds users to restart the shell. ```bash # Bash # macOS brew install bash-completion # Ubuntu/Debian sudo apt install bash-completion # Zsh # Ensure compinit is enabled in your .zshrc # Fish # Restart your fish shell after installing completions ``` -------------------------------- ### Build and Run Brew Update Helper Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CLAUDE.md Common commands for building, running, and testing the Brew Update Helper CLI tool using Cargo. Includes examples for syncing packages, performing upgrades with dry runs, specifying configuration paths, generating shell completions, and running tests. ```Bash cargo build # Run from source car go run -- sync cargo run -- --dry-run upgrade cargo run -- --config custom-path.md sync cargo run -- completion zsh # Generate shell completions # Run tests cargo test # Build release binary cargo build --release # Binary will be at target/release/brew-update-helper ``` -------------------------------- ### Makefile Commands for Brew Update Helper Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CLAUDE.md Provides a set of Makefile commands for building, installing, testing, and cleaning the Brew Update Helper project. Supports both system-wide and user-specific installations. ```Makefile make build # Build optimized release binary make install # Install system-wide (requires sudo) make install-user # Install for current user only make uninstall # Uninstall system-wide make test # Run tests with verbose output make clean # Clean build artifacts ``` -------------------------------- ### Troubleshoot 'command not found' Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This section addresses the 'brew-update-helper: command not found' error. It provides commands to check if the binary is in the system's PATH and instructions on how to add it if it's missing. ```bash # Verify the binary is in your PATH echo $PATH | grep -q "/usr/local/bin" && echo "PATH includes /usr/local/bin" || echo "PATH missing /usr/local/bin" # If missing, add to your shell profile echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc source ~/.bashrc # or ~/.zshrc ``` -------------------------------- ### Commit Message Format Example Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md An example illustrating the recommended commit message format, including a subject line, optional body for details, and issue tracking. ```bash Add feature: brief description Optional longer description explaining the change, motivation, and any breaking changes. Fixes #123 ``` -------------------------------- ### Building and Verifying Release Version Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Steps to build a release version of the application and verify its installation by checking the version number. ```bash cargo build --release ./target/release/brew-update-helper --version ``` -------------------------------- ### Rust Customizing MockBrewExecutor Data Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Demonstrates how to customize the data provided by MockBrewExecutor for specific test scenarios. This includes setting custom formulae, casks, and simulating errors like brew not being installed. ```Rust let executor = MockBrewExecutor::new() .with_formulae(vec!["custom-formula".to_string()]) .with_casks(vec!["custom-cask".to_string()]) .with_failed_verification(); // Simulate brew not installed ``` -------------------------------- ### Clean up brew-update-helper Configuration Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This command removes all configuration files and directories associated with brew-update-helper, typically located in `~/.config/brew-update-helper`. ```bash rm -rf ~/.config/brew-update-helper ``` -------------------------------- ### Uninstall brew-update-helper (Cargo) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This command uninstalls the brew-update-helper tool when it was installed using the Cargo package manager. ```bash cargo uninstall brew-update-helper ``` -------------------------------- ### Uninstall brew-update-helper (Binary) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This command removes the brew-update-helper binary when it was installed via a binary package, typically to `/usr/local/bin`. ```bash sudo rm /usr/local/bin/brew-update-helper ``` -------------------------------- ### Clean up brew-update-helper Shell Completions Source: https://github.com/anasmirza534/brew-update-helper/blob/main/INSTALL.md This section provides commands to remove the completion scripts for brew-update-helper from Bash, Zsh, and Fish shell configurations. ```bash # Bash rm ~/.bash_completion.d/brew-update-helper # Zsh rm ~/.zsh/completions/_brew-update-helper # Fish rm ~/.config/fish/completions/brew-update-helper.fish ``` -------------------------------- ### Run Brew Update Helper from Source Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Executes the brew-update-helper application directly from the source code using Cargo. Includes examples for running the sync command, upgrade command with dry-run, and displaying help information. ```bash # Run with debug build cargo run -- sync cargo run -- --dry-run upgrade # Or use the debug binary directly ./target/debug/brew-update-helper --help ``` -------------------------------- ### Bash Local Development Test Execution Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Commands for running tests locally using Cargo. Includes options for running all tests, specific test suites (unit, CLI, integration), and enabling verbose output. ```Bash # Run all tests cargo test # Run only unit tests cargo test --lib # Run only integration tests cargo test --test cli_tests cargo test --test integration_tests # Run with verbose output cargo test -- --nocapture ``` -------------------------------- ### Manual Testing with Cargo Run Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Examples of manually testing the brew-update-helper application using `cargo run`. This includes syncing packages and performing upgrades with a dry-run option. ```bash cargo run -- sync cargo run -- --dry-run upgrade ``` -------------------------------- ### Rust MockBrewExecutor Default Data Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Defines the default data used by MockBrewExecutor for testing. This includes sample formulae, casks, and outdated packages to simulate real Homebrew output. ```Rust formulae: ["git", "node", "python"] casks: ["visual-studio-code", "docker", "firefox"] outdated_packages: [ OutdatedPackage { name: "git", current: "2.40.0", available: "2.41.0", type: Formula }, OutdatedPackage { name: "docker", current: "4.18.0", available: "4.19.0", type: Cask } ] ``` -------------------------------- ### Brew Update Helper Shell Completion Setup (Bash, Zsh, Fish) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/README.md Instructions for setting up shell completion for Brew Update Helper in Bash, Zsh, and Fish shells to enhance command-line usability. ```Bash # Bash brew-update-helper completion bash > ~/.bash_completion.d/brew-update-helper source ~/.bash_completion.d/brew-update-helper ``` ```Zsh # Zsh brew-update-helper completion zsh > ~/.zsh/completions/_brew-update-helper # Add to ~/.zshrc: fpath=(~/.zsh/completions $fpath) ``` ```Fish # Fish brew-update-helper completion fish > ~/.config/fish/completions/brew-update-helper.fish ``` -------------------------------- ### Bash Debugging Test Execution Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Commands for debugging tests in Rust projects using Cargo. Includes options for running specific tests with captured output, enabling backtraces, and showing ignored tests. ```Bash # Run specific test with output cargo test test_name -- --nocapture # Run with stack traces RUST_BACKTRACE=1 cargo test # Run tests and show ignored tests cargo test -- --ignored ``` -------------------------------- ### Run Specific Brew Update Helper Tests Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Executes specific test suites for the brew-update-helper project using Cargo. Includes examples for running unit tests, integration tests, and tests with verbose output, as well as simulating a CI environment. ```bash # Run all tests cargo test # Run unit tests only cargo test --lib # Run integration tests cargo test --test cli_tests cargo test --test integration_tests # Run with verbose output cargo test -- --nocapture # Simulate CI environment (uses mocks) CI=true cargo test ``` -------------------------------- ### Bash CI Environment Test Execution Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Commands to simulate CI environments for testing by setting environment variables. This ensures tests behave correctly when run in automated pipelines. ```Bash # Simulate CI environment CI=true cargo test # Or GITHUB_ACTIONS=true cargo test ``` -------------------------------- ### Creating a Feature Branch with Git Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Standard Git command to create a new branch for feature development, typically starting from the main branch. ```bash git checkout -b feature/amazing-feature ``` -------------------------------- ### Install Brew Update Helper (Bash) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/README.md Downloads and installs the latest binary of Brew Update Helper for macOS. It automatically detects the system architecture and fetches the correct release file from GitHub, then extracts and moves the executable to the system's PATH. ```Bash # Auto-detect architecture and download latest release ARCH=$(uname -m) if [ "$ARCH" = "arm64" ]; then ARCH_SUFFIX="aarch64" else ARCH_SUFFIX="x86_64" fi # Get latest release tag and construct filename LATEST_TAG=$(curl -s https://api.github.com/repos/anasmirza534/brew-update-helper/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') RELEASE_FILE="brew-update-helper-${LATEST_TAG}-macos-${ARCH_SUFFIX}.tar.gz" curl -L "https://github.com/anasmirza534/brew-update-helper/releases/latest/download/$RELEASE_FILE" -o release.tar.gz tar -xzf release.tar.gz chmod +x brew-update-helper sudo mv brew-update-helper /usr/local/bin/ rm release.tar.gz ``` -------------------------------- ### Rust CI Environment Detection Source: https://github.com/anasmirza534/brew-update-helper/blob/main/TESTING.md Detects if the code is running in a CI environment (like GitHub Actions) to switch to a mock BrewExecutor. This allows for isolated testing without actual Homebrew commands. ```Rust fn create_executor() -> Box { #[cfg(test)] { if std::env::var("CI").is_ok() || std::env::var("GITHUB_ACTIONS").is_ok() { return Box::new(MockBrewExecutor::new()); } } Box::new(SystemBrewExecutor) } ``` -------------------------------- ### Brew Update Helper Common Commands (Bash) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/README.md Provides examples of common commands for Brew Update Helper, including previewing changes without execution, using a custom configuration file, and running in non-interactive mode. ```Bash # Preview changes without executing brew-update-helper --dry-run upgrade # Use custom settings file brew-update-helper --config ./my-settings.md sync # Non-interactive mode echo "y" | brew-update-helper upgrade ``` -------------------------------- ### Clone Brew Update Helper Repository Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Clones the brew-update-helper repository from GitHub to your local machine. This is the first step in setting up the project for local development and contribution. ```bash git clone https://github.com/anasmirza534/brew-update-helper.git cd brew-update-helper ``` -------------------------------- ### Run Brew Update Helper Locally with Options Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Demonstrates how to run the brew-update-helper application locally with various options, including testing the sync command, upgrade command with dry-run, custom configuration file, and shell completion generation. ```bash # Test sync command cargo run -- sync # Test upgrade with dry-run cargo run -- --dry-run upgrade # Test with custom config cargo run -- --config ./test-settings.md sync # Test shell completion cargo run -- completion bash ``` -------------------------------- ### Build Brew Update Helper Project Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Builds the brew-update-helper project using Cargo. This compiles the Rust code and prepares the executable for running and testing. ```bash cargo build ``` -------------------------------- ### Brew Update Helper Settings File Format Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CLAUDE.md Illustrates the markdown format used by the Brew Update Helper for managing package upgrade settings. It includes checkboxes to indicate user preferences for formulae and casks. ```Markdown # Brew Auto-Update Settings Generated on: YYYY-MM-DD HH:MM:SS UTC ## Formulae - [x] git - [ ] node ## Casks - [x] visual-studio-code - [ ] docker ``` -------------------------------- ### Testing Changes with Cargo Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Commands to run tests, linting, and formatting checks using Cargo, the Rust build system and package manager. These are essential steps before submitting changes. ```bash cargo test cargo clippy cargo fmt --check ``` -------------------------------- ### Run Brew Update Helper Tests Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Executes the test suite for the brew-update-helper project using Cargo. This ensures that the code functions as expected and helps prevent regressions. ```bash cargo test ``` -------------------------------- ### Running Specific Tests Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md How to run a single, specific test case by its name, also with output capture enabled for debugging. ```bash cargo test test_name -- --nocapture ``` -------------------------------- ### Basic Brew Update Helper Usage (Bash) Source: https://github.com/anasmirza534/brew-update-helper/blob/main/README.md Demonstrates the basic workflow for using Brew Update Helper: syncing package settings, customizing preferences in a markdown file, and performing selective upgrades. ```Bash # 1. Generate initial settings brew-update-helper sync # 2. Customize preferences vim ~/.config/brew-update-helper/settings.md # 3. Preview and upgrade brew-update-helper --dry-run upgrade brew-update-helper upgrade ``` -------------------------------- ### Debugging with RUST_LOG Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md How to run the application with verbose logging enabled by setting the `RUST_LOG` environment variable to `debug`. ```bash RUST_LOG=debug cargo run -- sync ``` -------------------------------- ### Committing Changes with Git Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Commands to stage all changes and commit them with a descriptive message, a crucial step in the Git workflow. ```bash git add . git commit -m "Add amazing feature" ``` -------------------------------- ### Common Development Commands for Brew Update Helper Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Provides a set of common Cargo commands used during the development of the brew-update-helper project. Includes commands for building, checking, formatting, linting, and cleaning the project. ```bash # Build debug version cargo build # Build release version cargo build --release # Check code without building cargo check # Format code cargo fmt # Run linter cargo clippy # Clean build artifacts cargo clean ``` -------------------------------- ### Running Tests with Output Capture Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Command to execute all tests with output capture enabled, useful for debugging failing tests. ```bash cargo test -- --nocapture ``` -------------------------------- ### Pushing Changes to Fork with Git Source: https://github.com/anasmirza534/brew-update-helper/blob/main/CONTRIBUTING.md Command to push the local feature branch to the remote repository fork, making the changes available for a pull request. ```bash git push origin feature/amazing-feature ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.