Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.26 KB

development.md

File metadata and controls

66 lines (48 loc) · 1.26 KB

Development Guide

This guide will help you set up a local development environment for gh-config, build the project, run tests, and contribute changes.

Prerequisites

Setup

  1. Clone the repository:

    git clone https://github.com/gitkb/gh-config-cli.git
    cd gh-config-cli
  2. Install Rust (if not already installed):

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. Build the project:

    cargo build --release
  4. Run tests:

    cargo test
  5. Lint and format:

    cargo fmt -- --check
    cargo clippy --all-targets --all-features -- -D warnings

Makefile Shortcuts

The Makefile provides shortcuts for common tasks:

make build
make diff CONFIG_FILE=config.yaml
make sync CONFIG_FILE=config.yaml
make sync-from-github CONFIG_FILE=config.yaml GITHUB_ORG=gitkb

Running the CLI

After building, run the CLI with:

./target/release/gh-config --help

Submitting Changes

  • Follow the contribution guidelines.
  • Write tests for new features or bug fixes.
  • Ensure all tests pass and code is formatted.

Happy hacking!