Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.67 KB

File metadata and controls

58 lines (42 loc) · 1.67 KB

Contributing to velog-cli

Thanks for your interest in contributing!

Development Setup

git clone https://github.com/hamsurang/velog-cli.git
cd velog-cli
cargo build

Before Submitting a PR

Please ensure:

  1. Formatcargo fmt-check passes
  2. Lintcargo lint passes (clippy with -D warnings)
  3. Testcargo test passes
  4. Commit messages — Use Conventional Commits format
cargo fmt-check && cargo lint && cargo test

Tip: Run lefthook install to have these checks run automatically on every commit. To skip hooks for WIP commits: git commit --no-verify

Project Structure

src/
  cli.rs       — clap CLI definitions
  auth.rs      — Credential storage, JWT validation
  client.rs    — VelogClient (GraphQL HTTP client)
  handlers.rs  — Command handlers and display
  models.rs    — Domain types, GraphQL envelope
  main.rs      — Entry point
tests/
  cli_tests.rs — CLI integration tests

Adding Features

  • Follow existing patterns in the codebase
  • Add unit tests for new logic
  • Keep functions small and focused
  • Use anyhow for error handling

Questions & Discussions

Reporting Issues

Use GitHub Issues to report bugs or request features.