WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
I'm a lazy developer and like to type as few characters as possible. It would be great if I could just run the winget configure command from the root of a project folder and the configure command would find my default config and use it. Similar to how I can run the npm install command with Node applications and I don't have to specify a path to my package.json, or I can run dotnet build for .NET apps and I don't have to specify what project file to build (but I can if the defaults don't work for me).
Proposed technical implementation details
When a user runs winget configure in a folder:
Look first for the default configuration file in ./configurations/configuration.dsc.yaml (following the recommended default file naming conventions)
If the default isn't found, behave the same as it does today
-or- Even better would be to recurse down from the current directory, look for files named .dsc.yaml (or .dsc.yml) and then provide the user with a list of relative file paths for all the configuration files found. This would make it easy to copy/paste and run winget configure -f with one of the discovered files.
Description of the new feature / enhancement
I'm a lazy developer and like to type as few characters as possible. It would be great if I could just run the
winget configure
command from the root of a project folder and the configure command would find my default config and use it. Similar to how I can run thenpm install
command with Node applications and I don't have to specify a path to my package.json, or I can rundotnet build
for .NET apps and I don't have to specify what project file to build (but I can if the defaults don't work for me).Proposed technical implementation details
When a user runs
winget configure
in a folder:./configurations/configuration.dsc.yaml
(following the recommended default file naming conventions)winget configure -f
with one of the discovered files.