https://github.com/wilhelmagren/docstring-rs
📒 Generate or update docstrings for new and existing files.
https://github.com/wilhelmagren/docstring-rs
automation cli documentation rust
Last synced: over 1 year ago
JSON representation
📒 Generate or update docstrings for new and existing files.
- Host: GitHub
- URL: https://github.com/wilhelmagren/docstring-rs
- Owner: wilhelmagren
- License: mit
- Created: 2023-09-24T17:08:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T09:00:27.000Z (over 2 years ago)
- Last Synced: 2025-03-18T06:34:55.124Z (over 1 year ago)
- Topics: automation, cli, documentation, rust
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://crates.io/crates/docstring-rs)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/wilhelmagren/docstring-rs)
[](https://github.com/wilhelmagren/docstring-rs/actions/workflows/ci.yml)
[](https://github.com/wilhelmagren/docstring-rs/actions/workflows/tests.yml)
## 🔎 Overview
Automatically generate new files or update existing codebases with header docstrings based on LICENSE information.
## 📦 Installation
```
cargo install docstring-rs
```
## 🚀 Usage
```
Usage: docstring-rs.exe [OPTIONS] --directory
Options:
-d, --directory Name of the directory in which to create new file or update existing files,
if it does not already exist, creates the directory
-f, --file Name of a new file to create with docstring as header. Prepends to top of
file if the target file already exists [default: *.*]
-l, --license Relative path to the LICENSE file to use as header docstring. If not specified,
expects a LICENSE file to exist in the current working directory [default: LICENSE]
-u, --update Specify whether or not to try and update all available docstrings in a directory
recursively, requires to have been set
-h, --help Print help
-V, --version Print version
```
## 📋 License
All code is to be held under a general MIT license, please see [LICENSE](https://github.com/wilhelmagren/docstring-rs/blob/main/LICENSE) for specific information.