-
Notifications
You must be signed in to change notification settings - Fork 905
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
Add command (choco template) to retrieve information about currently installed package templates #449
Comments
Adds "-l"/"--list" switch to choco new. This lists the custom templates that are installed in the templates directory. This is accomplished by simply getting a list of the sub-directories under the template directory and printing it out. Also prints out the number of directories found.
I'm not sure this would be covered by this issue, or should be split into another issue, but I just want to get this down. After considering this some more, it is not just the names of the installed templates I would want to know, but these pieces of information as well.
|
After some discussion with @gep13, this is now planned to be implemented a new command, A suggestion was that the parameters in the templates should be cached instead of being read every time. This will add significant complexity, so I am probably going to hold off on implementing that right away, and instead tackle displaying the list of parameters as a follow along PR. I am thinking of implementing two subcommands; |
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
This is in preparation for creation of a list_noop method to be used by the template command. Having just a noop method can be confusing if there are both generate and list methods.
This allows a user to get information about all installed templates, or a specific template. The list subcommand lists all installed templates. The info subcommand lists verbose information about a specific template Usage with -r should output a machine parsable list of the installed templates. Usage with verbose (implied with the info subcommand) outputs more information about the template(s). The information displayed here can be gathered by running the list command, config command and inspecting the contents of the TemplatesLocation. However, this command allows the information to be displayed in one location.
* release/0.12.0: (102 commits) (maint) Add generation of template command (#2522) Update documentation (maint) Remove unnecessary whitespace (#2522) Remove deprecated ScriptsCheckLastExitCode (maint) Fix spelling mistake (version) 0.12.0-beta (#2518) Add tab completion for template command (#2481) Warn about unuspported packages on non-Windows (#357) Add information about when command added (#449) Add information about when command added (#499) Add specs for template service list noop (#499) Add specs for template command (#449) Add template command (#449) Template service rename noop to generate_noop (#2434) Correct casing of filename in changed files tests (#2434) Enable more scenarios, skip only shim and powershell facts (#2450) Enable configTransform tests on non-Windows (#2450) Enable functions on non-Windows systems (maint) Corrected casing of PowerShell (#2510) Exclude uninstalling with locked file on non-windows ...
If you created custom templates you might later want to find out what you named them.
Something like
choco new -list
?The text was updated successfully, but these errors were encountered: