amtoine/nu-git-manager

add diff when updating cache manually

开放

#43 创建于 2023年10月27日

 (0 条评论) (0 个反应) (0 位负责人)Nushell (1 个派生)auto 404
coreenhancementgood first issue

仓库指标

星标
 (32 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

let's say i update repos of my store manually:

  • i git init a repo called manual/foo
  • i git init a repo called manual/bar
  • i rm a repo called auto/baz

when i run gm update-cache to remove auto/baz from it and add manual/foo and manual/bar to it, i think it would be cool to have an output like the following:

> gm update-cache
updating cache... done
#┬───name───┬status─
0│manual/foo│added
1│manual/bar│added
2│auto/baz  │removed
─┴──────────┴───────

this implies that the signature of gm update-cache would change a bit from

"gm update-cache" []: nothing -> nothing

to

"gm update-cache" []: nothing -> table<name: string, status: string>

贡献者指南