Skip to content

0.5.0

Compare
Choose a tag to compare
@amtoine amtoine released this 21 Jan 08:58
· 31 commits to main since this release
0.5.0
ba3a88d

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

PRs: #141 | #134 | #147 | #149

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 of package.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