Package zeroinstall :: Package cmd :: Module select
[frames] | no frames]

Module select

source code

The 0install select command-line interface.

Functions
 
add_generic_select_options(parser)
All options for selecting.
source code
 
add_options(parser)
Options for 'select' and 'download' (but not 'run')
source code
selections.Selections | None
get_selections(config, options, iface_uri, select_only, download_only, test_callback)
Get selections for iface_uri, according to the options passed.
source code
 
handle(config, options, args) source code
 
show_xml(sels) source code
 
show_human(sels, stores) source code
Variables
  syntax = "URI"
Function Details

get_selections(config, options, iface_uri, select_only, download_only, test_callback)

source code 

Get selections for iface_uri, according to the options passed. Will switch to GUI mode if necessary.

Parameters:
  • options - options from OptionParser
  • iface_uri - canonical URI of the interface
  • select_only - return immediately even if the selected versions aren't cached
  • download_only - wait for stale feeds, and display GUI button as Download, not Run
Returns: selections.Selections | None
the selected versions, or None if the user cancels