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 合併指標
 (30 天內沒有已合併 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>

貢獻者指南