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

cargo config list/set/get command #9412

Closed
ghost opened this issue Apr 25, 2021 · 2 comments
Closed

cargo config list/set/get command #9412

ghost opened this issue Apr 25, 2021 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@ghost
Copy link

ghost commented Apr 25, 2021

hello, I want the feature get config, set, list all config with cargo.

The idea come from golang , git cli

for example

> git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=false
core.fscache=true
core.symlinks=false
core.longpaths=true
pull.rebase=true
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=david
user.email=example@domain.com
gc.autodetach=false
http.https://github.saobby.my.eu.org.proxy=http://localhost:8123
http.https://github.saobby.my.eu.org.sslverify=false
http.https://fuchsia.googlesource.com.proxy=http://localhost:8123
http.https://fuchsia.googlesource.com.sslverify=false
difftool.sourcetree.cmd='' "$LOCAL" "$REMOTE"
mergetool.sourcetree.cmd=''
mergetool.sourcetree.trustexitcode=true
core.longpaths=true
PS C:\WINDOWS\system32> git config --global user.name "xxx"

The cargo has it's configure also, but where is it ?

can we easy to know what's current configure, I f we changed some configure, how do we know it works.

The git command will show exactly result, yes , we change our configure , then git config --list

I hope cargo has the same ability.

tell me more about the configuration.

@ghost ghost added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Apr 25, 2021
@Eh2406
Copy link
Contributor

Eh2406 commented Apr 25, 2021

A cargo config command was added in #9302, all though I am not seeing the stabilization plan at the moment.

@ehuss
Copy link
Contributor

ehuss commented Apr 25, 2021

Yes, this command should be available in the latest nightly. I updated the tracking issue #9301 with some details, and closing in favor of that.

@ehuss ehuss closed this as completed Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants