iomentum / cargo-scaffold

cargo scaffold lets you scaffold and generate projects described in a simple TOML file
MIT License
57 stars 12 forks source link

Use `auth-git2` crate for git authentication. #40

Closed de-vri-es closed 1 year ago

de-vri-es commented 1 year ago

The auth-git2 crate supports more methods of authentication.

It supports: the ssh agent, the git credential helpers, more standard key locations in $HOME/.ssh (not just rsa), the askpass helper and falling back to prompting on the terminal. It can also detect encrypted OpenSSH keys by itself, so the user doesn't have to say --passphrase-needed.

Note that I'm also the author of the auth-git2 crate. I wrote it last week to be able to use it here :)

Additionally, this PR changes path-name expansion to work per path component instead of on the whole path at once. This allows to remove the workaround with string replacement on windows, and it means windows and unix share the same implementation.

The PR also simplifies conversion of parameters to values as a preparation of more enhancements I have planned :)

de-vri-es commented 1 year ago

Thanks :partying_face:

bnjjj commented 1 year ago

@de-vri-es published on 0.8.11