docstring-rs

Crates.iodocstring-rs
lib.rsdocstring-rs
version0.3.0
sourcesrc
created_at2023-10-01 07:36:54.638214
updated_at2023-10-04 22:02:37.174881
descriptionπŸ“’ Generate or update docstrings for new and existing files.
homepagehttps://github.com/wilhelmagren/docstring-rs
repositoryhttps://github.com/wilhelmagren/docstring-rs
max_upload_size
id989092
size61,576
Wilhelm Γ…gren (wilhelmagren)

documentation

README



Crates.io (latest) License: MIT codecov CI Tests

πŸ”Ž 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 <DIRECTORY>

Options:
  -d, --directory <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 <FILE_NAME>       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 <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 <DIRECTORY> 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 for specific information.

Commit count: 20

cargo fmt