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

Simplify adding a source #31

Closed
sayedihashimi opened this issue Apr 30, 2016 · 4 comments
Closed

Simplify adding a source #31

sayedihashimi opened this issue Apr 30, 2016 · 4 comments

Comments

@sayedihashimi
Copy link
Member

The command to add a new source is

dotnet new3 source add <sourcename> <sourcepath>

I'm not sure what's the syntax for adding a NuGet package is currently here, but I'm guessing the following.

dotnet new3 source add <sourcename> <sourceversion>

From https://github.com/dotnet/cli/issues/2052, the proposal is

dotnet new --install <sourcename> <sourceversion>

In dotnet new3 the user has to remember two items source and add. Can we reduce to one single item, perhaps add or install.

@sayedihashimi sayedihashimi added this to the 0.0.1-demo milestone Apr 30, 2016
@mlorbetske
Copy link
Member

I like that, we can get rid of component too this way, one --install to rule them all

@mlorbetske mlorbetske self-assigned this Apr 30, 2016
@mlorbetske
Copy link
Member

Let's add --uninstall and something for listing what's installed too. We can use this to get rid of source and component commands, which will make help work better

@sayedihashimi
Copy link
Member Author

Let's add --uninstall and something for listing what's installed too. We can use this to get rid of source and component commands, which will make help work better

Sounds good

mlorbetske added a commit that referenced this issue Apr 30, 2016
@mlorbetske
Copy link
Member

-i|--install, -u|--uninstall and -c|--current-config now work with either sources or components, no additional name parameters are required, multiple components or sources can be installed/uninstalled at once.

@mlorbetske mlorbetske removed their assignment May 2, 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