summaryrefslogtreecommitdiffstats
path: root/cli/objects/scopes.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "cli: rename ogcli list scopes to ogcli list scope"OpenGnSys Support Team4 days1-1/+1
| | | | This reverts commit 8f5b709212aa1ea28e85a0367747976cf81e0f3a.
* scopes: add scope filtering by namev0.3.3-13Alejandro Sirgo Rica2024-09-121-17/+30
| | | | | | | Implement the --name flag in scope list to filter by client name. Example usage: ogcli list scope --name test
* cli: rename ogcli list scopes to ogcli list scopeAlejandro Sirgo Rica2024-09-121-1/+1
| | | | | Use the word "scope" to keep the format coherent with the other commands.
* cli: objects: unbreak ogcli with python 3.80.3.3-7Alejandro Sirgo Rica2024-06-031-2/+2
| | | | | | Older versions of Python can't handle interleaved quote types. Use single quotes as external string delimiter and double quotes in every part of the strings when quotation is needed.
* cli: add list scopes --client-ipAlejandro Sirgo Rica2024-06-031-2/+49
| | | | | | | | | | Implement a --client-ip filter to ease the task of finding the hierarchy associated to a client or list of clients. Usage: /ogcli list scopes --client-ip 10.141.10.23 /ogcli list scopes --client-ip 10.141.10.23 --client-ip 10.141.10.22
* src: update copyright statementOpenGnSys Support Team2024-01-021-1/+1
| | | | use opengnsys@soleta.eu email instead of info@soleta.eu
* format: use autopep8Jose M. Guisado2022-05-201-4/+5
| | | | | | | | | | | | | | Use autopep8 for coding format, and only for whitespace changes. This change drops use of tabs in favor of spaces. Doesn't use autopep8 --aggresive option. Format command: $ autopep8 --inline --recursive . When using git-blame, use --ignore-rev in order to ignore this reformatting commit.
* utils: add print_jsonJose M. Guisado2022-05-171-3/+4
| | | | | | | | | 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")
* list scopes: pretty print scope treeJose M. Guisado2022-05-161-1/+4
| | | | | Use json module to pretty print the scope tree. JSON keys are ordered and two-space indentation is used.
* ogCLI is AGPLv3+OpenGnSys Support Team2021-05-141-4/+3
| | | | Update license header in files.
* Print json instead of python dict in responsesJose M. Guisado2021-03-181-1/+1
| | | | | | | | r.json() decodes the responses json and passes it to json.loads() which will convert the content into a python dictionary. Print the literal JSON text so that output can be further manipulated by other tools like jq.
* add license header to source code filesOpenGnSys Support Team2020-07-011-0/+8
|
* Rename files to remove 'og' prefixRoberto Hueso Gómez2020-06-301-0/+6
This prefix is redundant on almost every file, so the prefix is removed from filenames and imports.