0.5.0
With Nushell 0.89 comes a new release of NGM: version 0.5.0
🥳
A new segment to the Git prompt: changes
PR: #133
The Git prompt of NGM now features a new "changes" segment. When there are changes to the local index, they will show up just after the "branch" segment inside [ ... ]
.
There are three symbols:
?
which means there are 1 or more untracked changes!
which means there are 1 or more unstaged changes_
which means there are 1 or more staged changes, ready to be commited
Brand new static documentation
PR: #128
NGM now ships a static documentation that is automatically generated from command and module documentation written in Markdown.
This should hopefully help users have a look at all NGM has to offer without installing anything of running help
manually :)
New command: gm repo query
PR: #127
A new command has appeared!!
gm repo query
is a new sweet command that uses a slightly modified version of nu_plugin_query
written by @fdncred.
it allows to query the Git .git/
directory as a database and wraps the plugin to return nice tables.
New completion: gm repo fetch branch
PR: #138
Completion has been added to the sweet gm repo fetch branch
command.
A fresh module structure
With recent changes to the module system of Nushell and how it's used by Nupm, NGM had to adapt completely.
In a nutshell, NGM
- uses
nupm.nuon
instead ofpackage.nuon
as before - manually exports internal modules to make them public
For the interested readers, below are the directory structures of the nu-git-manager
and nu-git-manager-sugar
modules in 0.4.0
vs now in 0.5.0
:
src
├── nu-git-manager
│ ├── completions
│ │ └── nu-complete.nu
│ ├── error
│ │ └── error.nu
│ ├── fs
│ │ ├── cache.nu
│ │ ├── dir.nu
│ │ ├── path.nu
│ │ └── store.nu
│ ├── git
│ │ ├── repo.nu
│ │ └── url.nu
│ └── mod.nu
└── nu-git-manager-sugar
├── extra.nu
├── git
│ ├── lib
│ │ ├── lib.nu
│ │ ├── prompt.nu
│ │ └── style.nu
│ ├── mod.nu
│ └── prompt.nu
├── github.nu
└── mod.nu
pkgs/
├── nu-git-manager
│ ├── nu-git-manager
│ │ ├── completions.nu
│ │ ├── error.nu
│ │ ├── fs
│ │ │ ├── cache.nu
│ │ │ ├── dir.nu
│ │ │ ├── mod.nu
│ │ │ ├── path.nu
│ │ │ └── store.nu
│ │ ├── git
│ │ │ ├── mod.nu
│ │ │ ├── repo.nu
│ │ │ └── url.nu
│ │ └── mod.nu
│ ├── nupm.nuon
│ └── tests
│ ├── gm.nu
│ └── mod.nu
└── nu-git-manager-sugar
├── nu-git-manager-sugar
│ ├── completions.nu
│ ├── extra.nu
│ ├── git
│ │ ├── lib
│ │ │ ├── git.nu
│ │ │ ├── mod.nu
│ │ │ ├── prompt.nu
│ │ │ └── style.nu
│ │ ├── mod.nu
│ │ └── prompt.nu
│ ├── github.nu
│ └── mod.nu
├── nupm.nuon
└── tests
├── git.nu
└── mod.nu
Full Changelog
- b333280 test the Git prompt (#122)
- 2dc21d5 add a "Git changes" segment to the prompt (#133)
- 1a9c0d9 generate and check documentation (#128)
- 0c17038 add
gm repo query
(#127) - 3c67d27 fix the documentation (#137)
- 0e54f60 add completions to
gm repo fetch branch
(#138) - 9118490 use
github.base_ref
to get the target branch in the CI (#139) - 6d2d176 use the toolkit in the CI (#135)
- 529ff39 bump Nushell and Nupm (#140)
- 96bb3a7 rename
package.nuon
tonupm.nuon
(#141) - 1262909 fix the export of modules (#134)
- 2d0e2c0 fix CI (#142)
- dcb5140 thanks Bash (missing quotes in boolean tests for undefined variables) (#143)
- d31ed97 fix the workflow dispatch to run tests (#144)
- 5c173bb bump
amtoine/setup-nupm-action
to 0.2.0 (#145) - 9555b25 remove quotes from
NU_VERSION
andNUPM_REVISION
(#146) - 8dd94f3 fix module exports (#147)
- cb591b8 refactor internal modules (#149)
- d7f3141 check the documentation in PRs against
nightly
(#150) - 3afdf90 dispatch the documentation CI (#152)
- 0d45894 return nothing from
test
/install
in toolkit (#153) - 3d970c5 remove deprecated
--switch: bool
(#154) - 937f4a8 fix
gm repo branches clean
when HEAD is detached (#155) - 471c7fb fix spreading of arguments to externals (#156)
- 8b01fff fix nightly types (#160)
- ba3a88d bump to 0.5.0 (#159)