Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | utils: add print_json | Jose M. Guisado | 2022-05-17 | 1 | -0/+6 |
| | | | | | | | | | Adds a pretty printing function for JSON data. Replaces print for print_json in corresponding cli objects. Follows commit 828d6c0ce7d4a6b4bcd95e97155460fd59856bdd ("list scopes: pretty print scope tree") | ||||
* | ogCLI is AGPLv3+ | OpenGnSys Support Team | 2021-05-14 | 1 | -4/+3 |
| | | | | Update license header in files. | ||||
* | Fix utils.py | Jose M. Guisado | 2021-03-30 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | When utils.py was created, moved functions declaration was not kept for scope_lookup by mistake, in previous commit it was named 'scope_lookup_id'. ips_in_scope is a function that maps a list of scopes to the list of ips contained in it, recursively. (if the scope is a room it will gather all computers ips in that room). Add 'None' check for its scope param, avoiding duplication of this check in several other objects using this function. Also import utils in 'modes' object, which was not added previously. Fixes: be84b0a ("Add utils.py") | ||||
* | Add utils.py | Jose M. Guisado | 2021-03-29 | 1 | -0/+24 |
Move auxiliary code that will be used by several objects. In this case, scope filtering and searching by id is going to be used by 'send wol' too. Avoid duplicating this code creating utils.py |