amtoine / nu-git-manager

A collection of Nushell tools to manage Git repositories.
GNU General Public License v3.0
26 stars 2 forks source link

REFACTOR #125

Closed amtoine closed 9 months ago

amtoine commented 9 months ago

related to

description

i was writing https://github.com/amtoine/nu-git-manager/pull/122 and i noticed the imports of git prompt where completely messed up :eyes:

reproduce

from the branch of #122, run tk test prompt

Test "tests sugar git prompt build-left-prompt" failed with exit code 1: Error: × todo

Test "tests sugar git prompt repo-current-action" failed with exit code 1: Switched to a new branch 'main' Switched to a new branch 'some' Switched to a new branch 'other' Error: nu::shell::external_command

× External command failed ╭─[/home/amtoine/documents/repos/github.com/amtoine/nu-git-manager/src/nu-git-manager-sugar/git/lib/lib.nu:96:1] 96 │ } else if (test-file "MERGE_HEAD") { 97 │ "MERGING" | color dark_gray · ──┬── · ╰── did you mean 'nu-highlight'? 98 │ } else if (test-file "CHERRY_PICK_HEAD") { ╰──── help: No such file or directory (os error 2)

Ran 3 tests. 1 succeeded, 2 failed. Error: × some tests failed

- after that change, e.g. by merging the two branches together

Testing package /home/amtoine/documents/repos/github.com/amtoine/nu-git-manager tests sugar git prompt build-left-prompt ... FAILURE tests sugar git prompt repo-current-action ... SUCCESS tests sugar git prompt repo-revision ... SUCCESS

Test "tests sugar git prompt build-left-prompt" failed with exit code 1: Error: × todo

Ran 3 tests. 2 succeeded, 1 failed. Error: × some tests failed