-
-
Save andrewsomething/50188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Launchpad PPA Search | |
| * Andrew Starr-Bochicchio <[email protected]> | |
| * MIT/X11 License | |
| */ | |
| CmdUtils.CreateCommand({ | |
| name: "lp-ppa-search", | |
| icon: "https://launchpadlibrarian.net/16114928/gem-sm.png", | |
| /* homepage: "http://packages.qa.debian.org/common/index.html", */ | |
| author: { name: "Andrew Starr-Bochicchio", email: "[email protected]"}, | |
| license: "MIT", | |
| description: "Launchpad PPA Search", | |
| help: "lp-ppa-search [package]", | |
| takes: {"package": noun_arb_text}, | |
| preview: function(pblock, package) { | |
| var template = "Search for ${name} in Launchpd PPAs."; | |
| pblock.innerHTML = CmdUtils.renderTemplate(template, {"name": package.text}); | |
| }, | |
| execute: function(package) { | |
| var url = "https://edge.launchpad.net/ubuntu/+ppas?name_filter=" + package.text +; | |
| Utils.openUrlInBrowser(url); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment