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, requirements=None)
Get selections for iface_uri, according to the options passed.
source code
zeroinstall.injector.selections.Selections
get_selections_for(requirements, config, options, select_only, download_only, test_callback)
Get selections for given requirements.
source code
 
handle(config, options, args) source code
 
show_xml(sels) source code
 
show_human(sels, stores) source code
 
complete(completion, args, cword) source code
Variables
  syntax = "URI"
Function Details

get_selections(config, options, iface_uri, select_only, download_only, test_callback, requirements=None)

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 (str) - canonical URI of the interface
  • select_only (bool) - return immediately even if the selected versions aren't cached
  • download_only (bool) - wait for stale feeds, and display GUI button as Download, not Run
  • requirements (Requirements) - requirements to use; if None, requirements come from options (since 1.15)
  • config (zeroinstall.injector.config.Config)
Returns: selections.Selections | None
the selected versions, or None if the user cancels

get_selections_for(requirements, config, options, select_only, download_only, test_callback)

source code 

Get selections for given requirements.

Parameters:
Returns: zeroinstall.injector.selections.Selections

Since: 1.9

handle(config, options, args)

source code 
Parameters:

show_xml(sels)

source code 
Parameters:

show_human(sels, stores)

source code 
Parameters:

complete(completion, args, cword)

source code 
Parameters:
  • completion (zeroinstall.cmd._Completion)
  • args ([str])
  • cword (int)