Commit Graph

4 Commits (7d2678422eb26f0930932fd8814c68eae0ea3dda)

Author SHA1 Message Date
Alejandro Sirgo Rica 4b77e1bca8 folder: fix add folder command
Fix typo causing an error in the add folder command.
2024-12-10 10:45:31 +01:00
Alejandro Sirgo Rica 10a3897f92 cli: ensure the program returns 0 on success and 1 on error
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.
2024-11-21 17:05:24 +01:00
Alejandro Sirgo Rica 9be4de87b7 ogcli: add update command for folder, room and center
Expand of the update command to be able to modify the values of
previous folder, room and center configurations.
2024-02-13 12:13:00 +01:00
Alejandro Sirgo Rica 4881610656 folder: add commands to create and delete folders
add command to add folders

	add folder --name test --room-id 123

to delete

	delete folder --id 456

you can fetch the id with 'list scopes'
2024-02-05 12:58:52 +01:00