Skip to content

Commit

Permalink
add extra usage for modules in documentation (#173)
Browse files Browse the repository at this point in the history
- should fix #172
- wait for nushell/nupm#62
  • Loading branch information
amtoine committed Feb 7, 2024
1 parent 1a99a09 commit e4425f4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/nu-git-manager-sugar/extra/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
## Description
extends the core `gm` command with additional subcommands.

/!\ this module is part of the optional NGM. /!\

## Commands
- [`gm report`](gm-report.md)
2 changes: 2 additions & 0 deletions docs/nu-git-manager-sugar/git/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## Description
ships a bunch of helper commands that augments the capabilities of Git.

/!\ this module is part of the optional NGM. /!\

## Commands
- [`gm repo bisect`](gm-repo-bisect.md)
- [`gm repo branch interactive-delete`](gm-repo-branch-interactive-delete.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/nu-git-manager-sugar/git/prompt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
## Description
provides a command to setup a Git-based prompt for Nushell.

/!\ this module is part of the optional NGM. /!\

## Commands
- [`setup`](setup.md)
2 changes: 2 additions & 0 deletions docs/nu-git-manager-sugar/github/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## Description
provides helper commands to simplify the use of the GitHub CLI.

/!\ this module is part of the optional NGM. /!\

## Commands
- [`gm gh pr checkout`](gm-gh-pr-checkout.md)
- [`gm gh query-api`](gm-gh-query-api.md)
Expand Down
4 changes: 4 additions & 0 deletions docs/nu-git-manager-sugar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
`nu-git-manager-sugar` is the additional module and package of NGM, with sugar
on top.

it ships things like extensions to the core `gm` command, augments Git with
automation commands and can provide helper commands around utilities such as
the GitHub CLI.

## Commands
no commands

Expand Down
6 changes: 6 additions & 0 deletions docs/nu-git-manager/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
## Description
`nu-git-manager` is the core module and package of NGM.

it features all required commands to interact with and manage Git repos.

this module ships the `gm` command and a bunch of subcommands, allowing you to
clone, list, remove, ..., repositories without worrying about where they are
on your filesystem!

## Commands
- [`gm`](gm.md)
- [`gm clean`](gm-clean.md)
Expand Down
2 changes: 2 additions & 0 deletions toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ def document-module [
"## Description",
$module.usage,
"",
$module.extra_usage,
"",
"## Commands",
$commands,
]
Expand Down

0 comments on commit e4425f4

Please sign in to comment.