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

refactor git and git-prompt modules in sugar to allow testing #121

Merged
merged 3 commits into from
Dec 3, 2023

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Dec 3, 2023

related to

description

the ./src/nu-git-manager-sugar/ directory structure changed from

.
|-- extra.nu
|-- git-prompt.nu
|-- git.nu
|-- github.nu
`-- mod.nu

to

.
|-- extra.nu
|-- git
|   |-- lib
|   |   |-- lib.nu
|   |   `-- prompt.nu
|   |-- mod.nu
|   `-- prompt.nu
|-- github.nu
`-- mod.nu

that is

  • all the Git commands, e.g. gm repo ..., are still exposed as before from git/mod.nu
  • git-prompt has been moved to git/prompt.nu and the main setup command is now called nu-git-manager-sugar git prompt setup
  • the commands from past git-prompt.nu that would need to be tested have been moved to git/lib/ which is a private module

@amtoine amtoine added sugar Related to the `nu-git-manager-sugar` module refactor Changes that just moves code around without altering features labels Dec 3, 2023
@amtoine amtoine mentioned this pull request Dec 3, 2023
4 tasks
@amtoine amtoine merged commit 9359ac6 into main Dec 3, 2023
4 checks passed
@amtoine amtoine deleted the refactor-git-sugar branch December 3, 2023 12:23
amtoine added a commit to amtoine/dotfiles that referenced this pull request Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Changes that just moves code around without altering features sugar Related to the `nu-git-manager-sugar` module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant