31 releases (10 breaking)

new 0.11.2 Apr 26, 2024
0.11.0 Feb 22, 2024
0.9.1 Dec 11, 2023
0.8.2 Nov 8, 2023

#2122 in Command line utilities

Download history 7/week @ 2023-12-29 1/week @ 2024-01-05 10/week @ 2024-01-26 79/week @ 2024-02-16 82/week @ 2024-02-23 5/week @ 2024-03-01 14/week @ 2024-03-08 8/week @ 2024-03-15 9/week @ 2024-03-29 96/week @ 2024-04-05 12/week @ 2024-04-12

117 downloads per month

MIT/Apache

86KB
2K SLoC

Gengo

Installing the binary

cargo install gengo-bin

Usage

API documentation

This tool has multiple file sources. Each file source can have unique usage to take advantage of its strengths and work around its weaknesses.

Directory File Source

This is a very generic file source that tries not to make many assumptions about your environment and workspace.

Ignoring Files

You can utilize a .gitignore file and/or an .ignore file to prevent files from being scanned. See the ignore for more details.

Git File Source

The git file source is highly opinionated -- it tries to act like a git utility, and uses git tools. Its goal is to behave similarly to linguist.

Overrides

Like linguist, you can override behavior using a .gitattributes file. Basically, just replace linguist-FOO with gengo-FOO. Unlike linguist, gengo-detectable will always make a file be included in statistics (linguist will still exclude them if they're generated or vendored).

# .gitattributes

# boolean attributes:

# These can be *negated* by prefixing with `-` (`-gengo-documentation`).
# Mark a file as documentation
*.html gengo-documentation
# Mark a file as generated
my-built-files/* gengo-generated
# Mark a file as vendored
deps/* gengo-vendored

# string attributes:
# Override the detected language for a file
# Use the Language enum's variant name (see docs.rs for more details)
templates/*.js gengo-language=PlainText

You will need to commit your .gitattributes file for it to take effect.

Dependencies

~21–33MB
~612K SLoC