Skip to content

Commit

Permalink
🐛 fix!: fix conflict with command name and category name
Browse files Browse the repository at this point in the history
The command `documentation` and the category name 'documentation' were both conflicting with each other.

To solve this, the documentation command now uses `docs` to specify it.
inttter committed Sep 25, 2024
1 parent b58b28e commit 6f00ca4
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ For help information, such as what commands do or what arguments they accept, ru
`mdb copy [category] [badgeName] ` | Copies a badges' code to the clipboard. | `c` | Supports copying Markdown version, and HTML version via `--html`.
`mdb badges` | Opens a link to the badge list in your browser. | `list` | Opens in your default browser.
`mdb add [category] [badgeName] [fileName]` | Allows you to add a badge to a Markdown file. | None | Supports both Markdown versions of badges, and HTML versions using `--html`. Also works in subdirectories.
`mdb documentation` | Opens a link to the documentation in your browser. | None | Opens in your default browser.
`mdb docs` | Opens a link to the documentation in your browser. | None | Opens in your default browser.
`mdb changelog` | Opens a link to the latest release with it's changelogs in your browser. | `release` |Opens in your default browser.

# Categories
3 changes: 1 addition & 2 deletions src/index.mjs
Original file line number Diff line number Diff line change
@@ -500,8 +500,7 @@ program

// Documentation Command
program
.command('documentation')
.alias('docs')
.command('docs')
.description('open a link to the documentation in your browser')
.action(async () => {
console.log();

0 comments on commit 6f00ca4

Please sign in to comment.