π§© Architecture
GlyphItβs architecture is modular and designed around command execution and repository handling.
ποΈ Project Structure
src/
βββ main.rs # Entry point
βββ functions/ # CLI command implementations
β βββ add.rs
β βββ commit.rs
β βββ push.rs
β βββ mod.rs
βββ types/ # Core types and data structures
βββ commands.rs
βββ repository.rs
βββ mod.rs
βοΈ Core Modules
main.rs
- Parses CLI arguments.
- Delegates execution to command functions in
functions/mod.rs
.
functions/
Contains the implementation of the main Git commands:
- add.rs
β handles staging files.
- commit.rs
β creates emoji-standardized commits.
- push.rs
β handles pushing to remote.
types/
Defines data models used across the codebase:
- commands.rs
β defines enums/structs for command types.
- repository.rs
β manages local Git repo metadata.
π§± Design Philosophy
- Keep logic modular (per command file)
- Focus on simplicity, not abstraction
- Avoid unnecessary dependencies