Thanks for your interest in contributing!
git clone https://github.com/hamsurang/velog-cli.git
cd velog-cli
cargo buildPlease ensure:
- Format —
cargo fmt-checkpasses - Lint —
cargo lintpasses (clippy with-D warnings) - Test —
cargo testpasses - Commit messages — Use Conventional Commits format
cargo fmt-check && cargo lint && cargo testTip: Run
lefthook installto have these checks run automatically on every commit. To skip hooks for WIP commits:git commit --no-verify
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
- Follow existing patterns in the codebase
- Add unit tests for new logic
- Keep functions small and focused
- Use
anyhowfor error handling
- Bug reports: Open an issue
- Feature ideas: Start a discussion first, then create an issue
- Usage questions: Q&A discussions
Use GitHub Issues to report bugs or request features.