Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add diff when updating cache manually #43

Open
amtoine opened this issue Oct 27, 2023 · 0 comments
Open

add diff when updating cache manually #43

amtoine opened this issue Oct 27, 2023 · 0 comments
Labels
core Related to the main `nu-git-manager` module enhancement New feature or request good first issue Good for newcomers

Comments

@amtoine
Copy link
Owner

amtoine commented Oct 27, 2023

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>
@amtoine amtoine added enhancement New feature or request core Related to the main `nu-git-manager` module good first issue Good for newcomers labels Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the main `nu-git-manager` module enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant