-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Should the CLI support user default setting values #9344
Comments
@KathleenDollard @nguerrera another application for |
In [alias]
dnc = !dotnet new console -n $2
etc. docs: https://git-scm.com/docs/git-config with usage: |
This sounds cool. Downsides? |
You can do aliases many ways. .gitconfig is a clever way to do it xplat. However having functionality core to the CLI would be more expected. Aliases are a way for devs to personalize their experience for their machines and tools, add shortcuts etc on top of the experience the tools give us out of the box. |
I was too brief. I meant, any downsides to adding the ability to do aliases in the dotnet CLI itself. I don't want to require any other tools for basic behavior. |
I'm biased because I've said that I've wanted this a lot, but I don't think there are downsides. 😄 |
Git supports configuring command aliases so that frequently used commands can be used with fewer keystrokes. For example: Have configured it as git config --global alias.pom "pull origin main" Similar to this, kindly consider enabling the option in dotnet CLI commands to configure aliases so that frequent commands can be used in fewer keystrokes. dotnet new maui-page-csharp -n HomePage -p:n MyApp.Views This can be configured as Configuring placeholders can also be considered so that using the hyphen(s) as prefixes can be avoided in the usage. In the same dotnet new command, the name can be the first placeholder and the namespace as the second placeholder. dotnet new maui-page-csharp -n $1 -p:n $2 |
I would love to use the aliasing system for |
This is essentially what We used to have I'm not sure how to reconcile all of this w/rt to plugging in, in a way that doesn't already look like VSTest or Microsoft Testing Platform. I guess I'd want to see examples of what your anticipated usage looks like and how you'd envision that being handed off to us. |
Working with a Razor Pages app. Having to type the namespace value over and over when adding a new page to the application.
Solved with creating local variable
The Azure CLI offers user defaults once set the user does not have to specify them in the actual command at all.
It would suffice that the dotnet application should support this feature for things like
--framework
,--language
,--nuget-source
etc. without having to have the developer script specifically via bash, powershell or some other means.The text was updated successfully, but these errors were encountered: