-
-
Notifications
You must be signed in to change notification settings - Fork 420
Scripting Guide
PyroScope Project edited this page Nov 12, 2017
·
16 revisions
This guide is still very incomplete — the best way to remedy that is to contribute what you know. |
---|
You can use the quite powerful GitHub search to find information on commands, e.g. their old vs. new syntax variants, what they actually do (i.e. “read the source”), and internal uses in predefined methods, handlers, and schedules. Consider the view.add example.
- RPC Setup XMLRPC
- Sending commands with XMLRPC2SCGI
- Auto-generated list of options used with some commands.
- Migration to 0.9 command syntax
- method.* – Define new commands based on existing ones.
- branch & if – Execute different commands depending on conditions.
- execute[.*] – Call operating system commands, possibly catching their output for use within rTorrent.
- schedule – Repeatedly execute commands, either in a given frequency, or at certain times.
- convert.* – Commands that format values into strings.
- system.* – Commands related to the operating system and the XMLRPC API.
- ui.* – These commands control aspects of the ‘curses’ UI.
This is a summary about the possible variable types in command_dynamic.cc (applies to v0.9.6).
Available types:
- multi (with subtypes: static, private, const, rlookup)
- TODO: what is it
- simple (with subtypes: static, private, const)
- TODO: why is it "simple"
- value, bool, string, list (with subtypes: static, private, const)
- Standard types, "value" is an integer.