Crates.io | psummary |
lib.rs | psummary |
version | 0.1.4 |
source | src |
created_at | 2024-07-29 17:37:47.050209 |
updated_at | 2024-08-03 09:59:42.882031 |
description | 🗣️ Summary — |
homepage | |
repository | https://github.com/PlayForm/Summary.git |
max_upload_size | |
id | 1319059 |
size | 77,386 |
Summary is a powerful command-line tool designed for efficient Git
repository analysis and summarization. It offers both sequential and parallel
processing capabilities, along with flexible file filtering options.
Summary -P > Summary.md
Summary will now generate the following Summary.md for all the commits and tags between the first and the last commit.
Git
tags.Git
repository analysis.The Summary CLI supports Pieces OS, allowing it to:
By leveraging Pieces OS, Summary can tap into a broader ecosystem of development tools and services, significantly expanding its capabilities beyond basic file processing.
cargo install psummary
The Summary tool can be used with various options:
🗣️ Summary —
Usage: Summary [OPTIONS]
Options:
-P, --Parallel ⏩ Parallel —
-R, --Root <ROOT> 📂 Root — [default: .]
-E, --Exclude <EXCLUDE> 🚫 Exclude — [default: node_modules]
--Pattern <PATTERN> 🔍 Pattern — [default: .git]
-O, --Omit <OMIT> 🚫 Omit — [default: Documentation]
-h, --help Print help
-V, --version Print version
This command will generate summaries for all the Git
tags inside the specified
repository.
The Summary tool can be used with various options:
Exclude certain files or directories.
Default is:
Summary -P -E node_modules
Specify regex patterns to omit files from processing.
Default is:
Summary -P \
--Omit "(?i)documentation" \
--Omit "(?i)target" \
--Omit "(?i)changelog\.md$" \
--Omit "(?i)summary\.md$"
Run processing in parallel.
Default is:
Summary
Specify a custom pattern for matching.
Default is:
Summary -P --Pattern .git
Set the current working directory to a different folder.
Default is:
Summary -P --Root .
For Pieces OS integration, refer to the Pieces OS documentation for specific flags and configuration options. Pieces OS
Analyze the current directory:
Summary
Analyze a specific directory in parallel:
Summary -P -R D:\Developer
Exclude additional directories:
Summary -P -E "node_modules target dist vendor"
Omit specific file patterns:
Summary -P -O "\.md$" -O "\.txt$"
Summary relies on several Rust crates to provide its functionality:
clap
- For parsing command-line arguments.futures
- For asynchronous programming abstractions.git2
- For Git
repository operations.num_cpus
- For determining the number of CPUs for parallel processing.rayon
- For parallel processing.regex
- For pattern matching and text manipulation.tokio
- For asynchronous runtime.walkdir
- For efficient filesystem traversal.Pieces OS For extended functionality and system integration.
See CHANGELOG.md for a history of changes to this CLI.