bcurran3 / ChocolateyPackages

My published Chocolatey packages
206 stars 94 forks source link

[Feature Request] CNC - Open Package URL #356

Closed asheroto closed 7 months ago

asheroto commented 9 months ago

It would be handy if CNC would be able to open the URL for a package on the community repository.

For example, while in this folder...

C:\Projects\ChocolateyPackages\intel-rst-driver

Typing this...

cnc -OpenPackageUrl

Would open this: https://community.chocolatey.org/packages/intel-rst-driver

There could also be a -version tag such as

cnc -OpenPackageUrl -Version 1.2.3
bcurran3 commented 7 months ago

Hey @asheroto buddy, just seeing this.

Good idea.

Here's what I currently use. You might find it useful, add to your PS profile script:

function cweb {param ([string]$package ) 
if (($package -eq '') -or ($package -eq '.')) {$package=(Split-Path -Leaf $(Get-Location).Path)}
start https://community.chocolatey.org/packages/$package
}

You might find this useful too, modify for your repo:

function gweb {param ([string]$package ) 
if (($package -eq '') -or ($package -eq '.')) {$package=(Split-Path -Leaf $(Get-Location).Path)}
start https://github.com/bcurran3/ChocolateyPackages/tree/master/$package
}

Closing this as I am no longer creating or maintaining Chocolatey packages. Sorry, out of my control.

Hopefully you've enjoyed my work and found it useful.

Bella Ciao!