Skip to content

Commit

Permalink
Fix help strings and consistently use docstrings (#29)
Browse files Browse the repository at this point in the history
* Fix help strings and consistently use docstrings

* Bump version and changelog
  • Loading branch information
daneah authored Apr 17, 2024
1 parent 0be55db commit 78a9c3d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [0.0.8] - 2024-02-012
## [0.0.9] - 2024-04-17

### Fixed

- Fix incorrect help string for the `list` command

## [0.0.8] - 2024-02-12

### Added

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = repo-man
version = 0.0.8
version = 0.0.9
description = Manage repositories of a variety of different types.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
2 changes: 1 addition & 1 deletion src/repo_man/commands/list_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from repo_man.utils import ensure_config_file_exists, parse_repo_types, pass_config


@click.command(name="list", help="The type of repository to manage")
@click.command(name="list")
@click.option("-t", "--type", "repo_types", multiple=True, show_choices=False, required=True)
@pass_config
def list_repos(config: configparser.ConfigParser, repo_types: list[str]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/repo_man/commands/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from repo_man.utils import ensure_config_file_exists, parse_repo_types, pass_config


@click.command(name="remove", help="Remove a repository from one or more types")
@click.command(name="remove")
@click.option("-t", "--type", "repo_types", multiple=True, help="The types from which to remove the repository")
@click.argument("repo", type=click.Path(exists=True, file_okay=False))
@pass_config
Expand Down

0 comments on commit 78a9c3d

Please sign in to comment.