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

Feature Request: Add Batch option for add-credentials #1722

Closed
pauxus opened this issue Jun 14, 2016 · 1 comment
Closed

Feature Request: Add Batch option for add-credentials #1722

pauxus opened this issue Jun 14, 2016 · 1 comment

Comments

@pauxus
Copy link
Contributor

pauxus commented Jun 14, 2016

Currently, add-credentials always asks credentials from the console.

In our developer machine setup, we automatically configure configuration files for various build systems / tools like maven, gradle, npm, nuget all using the same user credentials.

We do this by reading the credentials from the user once and after that executing config commands of the tools in sequence (npm config auth, nuget source...)

However, Paket does not allow to specify username and password directly on the command line, which makes it a lot harder to automatically configure it using that system.

I suggest providing a --batch flag:

paket config add-credentials --batch

alternatively:

paket config add-credentials --username --password

@forki
Copy link
Member

forki commented Jun 15, 2016

Yes this sounds doable.
I'm making this up-for-grabs
On Jun 14, 2016 15:35, "Stephan Pauxberger" [email protected]
wrote:

Currently, add-credentials always asks credentials from the console.

In our buildsetup, we automatically configure configuration files for
various build systems / tools like maven, gradle, npm, nuget all using the
same user credentials.

We do this by reading the credentials from the user once and after that
executing config commands of the tools in sequence (npm config auth, nuget
source...)

However, Paket does not allow to specify username and password directly on
the command line, which makes it a lot harder to automatically configure it
using that system.

I suggest providing a --batch flag:

paket config add-credentials --batch

alternatively:

paket config add-credentials --username --password


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1722, or mute the thread
https://github.com/notifications/unsubscribe/AADgNABeSIwoYHOInY_5IDMycuQxwRmvks5qLq4dgaJpZM4I1U70
.

pauxus added a commit to pauxus/Paket that referenced this issue Jun 16, 2016
This allows add-credentials to supply username and password from the
command line.
@forki forki closed this as completed in 342a424 Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants