Package copr_cli :: Module subcommands
[hide private]
[frames] | no frames]

Module subcommands

source code

Function actually doing the work of calling the API and handling the output.

Functions [hide private]
 
_get_data(req, user, copr=None)
Wrapper around response from server
source code
 
get_user()
Retrieve the user information from the config file.
source code
 
get_api_url()
Retrieve the user information from the config file.
source code
 
listcoprs(username=None)
List all the copr of a user.
source code
 
create(name, chroots=[], description=None, instructions=None, repos=None, initial_pkgs=None)
Create a new copr.
source code
 
_fetch_status(build_id) source code
 
status(build_id)
Return status of build
source code
 
build(copr, pkgs, memory, timeout, wait=True)
Build a new package into a given copr.
source code
Variables [hide private]
  __package__ = 'copr_cli'
Function Details [hide private]

_get_data(req, user, copr=None)

source code 

Wrapper around response from server

check data and print nice error in case of some error (and return None) otherwise return json object.