Main program execution
Parameters: | opts (argparse.Namespace) – Cmdline arguments |
---|
Cancel a running compose
Parameters: |
---|
compose cancel <uuid>
This will cancel a running compose. It does nothing if the compose has finished.
Process compose commands
Parameters: | opts (argparse.Namespace) – Cmdline arguments |
---|---|
Returns: | Value to return from sys.exit() |
Return type: | int |
This dispatches the compose commands to a function
Delete a finished compose’s results
Parameters: |
---|
compose delete <uuid,...>
Delete the listed compose results. It will only delete results for composes that have finished or failed, not a running compose.
Return detailed information about the compose
Parameters: |
---|
compose details <uuid>
This returns information about the compose, including the recipe and the dependencies.
Download the compose’s output image
Parameters: |
---|
compose image <uuid>
This downloads only the result image, saving it as the image name, which depends on the type of compose that was selected.
Show the last part of the compose log
Parameters: |
---|
compose log <uuid> [<size>kB]
This will display the last 1kB of the compose’s log file. Can be used to follow progress during the build.
Download a tar of the compose’s logs
Parameters: |
---|
compose logs <uuid>
Saves the logs as uuid-logs.tar
Download a tar file of the compose’s metadata
Parameters: |
---|
compose metadata <uuid>
Saves the metadata as uuid-metadata.tar
Download a tar file of the compose’s results
Parameters: |
---|
compose results <uuid>
The results includes the metadata, output image, and logs. It is saved as uuid.tar
Start a new compose using the selected recipe and type
Parameters: |
---|
compose start <recipe-name> <compose-type>
Return the status of all known composes
Parameters: |
---|
This doesn’t map directly to an API command, it combines the results from queue, finished, and failed so raw JSON output is not available.
Process modules commands
Parameters: | opts (argparse.Namespace) – Cmdline arguments |
---|---|
Returns: | Value to return from sys.exit() |
Return type: | int |
Process projects commands
Parameters: | opts (argparse.Namespace) – Cmdline arguments |
---|---|
Returns: | Value to return from sys.exit() |
Return type: | int |
Output info on a list of projects
Parameters: |
---|
projects info <project,...>
Print the recipe’s change in a nice way
Parameters: |
---|
Generate nice diff entry string.
Parameters: | diff (dict) – Difference entry dict |
---|---|
Returns: | Nice string |
Display the changes for each of the recipes
Parameters: |
---|
recipes changes <recipe,...> Display the changes for each recipe.
Process recipes commands
Parameters: | opts (argparse.Namespace) – Cmdline arguments |
---|---|
Returns: | Value to return from sys.exit() |
Return type: | int |
This dispatches the recipes commands to a function
Delete a recipe from the server
Parameters: |
---|
delete <recipe> Delete a recipe from the server
Display the packages needed to install the recipe
Parameters: |
---|
recipes depsolve <recipe,...> Display the packages needed to install the recipe.
Display the differences between 2 versions of a recipe
Parameters: |
---|
Handle the recipes freeze commands
Parameters: |
---|
recipes freeze <recipe,...> Display the frozen recipe’s modules and packages. recipes freeze show <recipe,...> Display the frozen recipe in TOML format. recipes freeze save <recipe,...> Save the frozen recipe to a file, <recipe-name>.frozen.toml.
Save the frozen recipe to a TOML file
Parameters: |
---|
recipes freeze save <recipe,...> Save the frozen recipe to a file, <recipe-name>.frozen.toml.
Show the frozen recipe in TOML format
Parameters: |
---|
recipes freeze show <recipe,...> Display the frozen recipe in TOML format.
Output the list of available recipes
Parameters: |
---|
recipes list
Push a recipe TOML file to the server, updating the recipe
Parameters: |
---|
push <recipe> Push a recipe TOML file to the server.
Save the recipe to a TOML file
Parameters: |
---|
recipes save <recipe,...> Save the recipe to a file, <recipe-name>.toml
Show the recipes, in TOML format
Parameters: |
---|
recipes show <recipe,...> Display the recipe in TOML format.
Multiple recipes will be separated by
Tag the most recent recipe commit as a release
Parameters: |
---|
recipes tag <recipe> Tag the most recent recipe commit as a release.
Undo changes to a recipe
Parameters: |
---|
recipes undo <recipe> <commit> Undo changes to a recipe by reverting to the selected commit.
Take a list of human args and return a list with each item
Parameters: | args (list of str) – list of strings with possible commas and spaces |
---|---|
Returns: | List of all the items |
Return type: | list of str |
Examples:
[“one,two”, “three”, ”,four”, ”,five,”] returns [“one”, “two”, “three”, “four”, “five”]
Convert a recipe name into a filename.toml
Parameters: | recipe_name (str) – The recipe’s name |
---|---|
Returns: | The recipe name with ‘ ‘ converted to - and .toml appended |
Return type: | str |
Log any errors, return the correct value
Parameters: | result (dict) – JSON result from the http query |
---|