-
-
Notifications
You must be signed in to change notification settings - Fork 816
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 or document installing from console feature #883
Comments
You are correct, such functionality exists in form of the advanced_install_package command. It's not documented on https://packagecontrol.io/docs/usage though. Edit: I just noticed that the docstring of If you need to add the repository first, I suppose there is something that PC could be improved upon. Either by accepting arguments in the add_repository command or by allowing urls to be specified in the advanced_install_package command. The former sounds clearer to me use-case-wise and easier to implement. |
Sorry, unfortunately, my Python skills are not as good as Java or JavaScript. How do I use the I've tried running |
It isn't that I don't want to tell you the exact answer, but instead I encourage you to look at the ST docs here so you can learn more about Sublime Text. This will be useful if you are intending to build something on top of Package Control. https://www.sublimetext.com/docs/3/api_reference.html |
I've spend about an hour trying to figure out how to make it work. I would appreciate some guidance. As I said, I am far from Python expert. The code that almost works:
The problem is that here the first parameter is |
I'll give you a few tips. Hopefully not too much, but it seems you are really missing the fundamentals. First, the So the second tip is: There are API functions to "run" commands. Commands are the main interface between anything that registers events and anything that does something in ST (key bindings, menu items, the command palette all use the "command interface"). Maybe this is worth a read. And the final tip, command names of Python classes (that subclass a |
All major commands are available from command line in Package Control. see: #1597 (comment) |
I want to create a script that installs a set of most popular packages for a Front end developer (Emmet, LESS, Sass, SideBarEnhancements, EditorConfig, etc).
In order to accomplish this, it would be nice to have an ability not only to Install Package by hands, but also from console or command line. Something like
PC.install_package("package_name/url")
P.S. I guess such functionality more or less already exists, but not well documented.
The text was updated successfully, but these errors were encountered: