summaryrefslogtreecommitdiffstats
path: root/cli/objects/live.py
Commit message (Collapse)AuthorAgeFilesLines
* cli: add live management commandsHEADv0.3.3-14masterAlejandro Sirgo Rica8 days1-1/+269
| | | | | | | | | | | | | | | | | | | Add new parameters to the config file ogcli.json with the following default values: 'local_live': '/var/www/html/ogrelive' 'server_live': 'https://opengnsys.soleta.eu/ogrelive' Add command to install the files of a live system. Example: ogcli install live --name ogrelive-6.1.0-26 Perform an update if live files are already present. Add command to delete the files of a live system. Example: ogcli delete live --name ogrelive-6.1.0-26 Update ogcli list live to show the lives in the server when invoked with the --remote flag. Example: ogcli list live --remote
* cli: ensure the program returns 0 on success and 1 on errorAlejandro Sirgo Rica8 days1-2/+5
| | | | | | | | | | propagate a returncode in each operation and make it the returncode of the program. Prevent sys.exit calls in post(), get() and delete() request handlers to enable cleanup code and error handling. Keep a basic error log inside the request functions if the connection can't be established or if the response contains an error code.
* src: update copyright statementOpenGnSys Support Team2024-01-021-1/+1
| | | | use opengnsys@soleta.eu email instead of info@soleta.eu
* live: add command to list available live imagesOpenGnSys Support Team2024-01-021-0/+17
Add new command to display the available live images: # ogcli list live