| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Non-method attributes are shown using dir() when listing available
commands.
usage: ogcli [-h] [{create,list,restore,rest,send,set,setup}]
'rest' is a class instance of OgRest and must not be
shown when listing available commands.
Method members of OgCLI class are the available commands that ogcli can
execute.
Use inspect module in order to get class members (getmembers) and filter
only those that are a method (ismethod).
usage: ogcli [-h] [{create,list,restore,send,set,setup}]
Fixes: 0f2d1f1dba4 ("Show all valid commands when running ogcli --help")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commands are retrieved using dir() so future commands will show
accordingly.
"ogcli --help" now will print:
usage: ogcli [-h] {create,list,rest,restore,send,set,setup}
positional arguments:
{create,list,rest,restore,send,set,setup}
Subcommand to run
optional arguments:
-h, --help show this help message and exit
|
|
|
|
| |
Update license header in files.
|
|
|
|
| |
This uses python3 and improves portability by using '/usr/bin/env'.
|
| |
|
|
|
|
|
| |
This prefix is redundant on almost every file, so the prefix is removed from
filenames and imports.
|
|
|
|
| |
This is consistent with HTTP GET /modes
|
|
|
|
| |
This is consistent with HTTP GET /scopes
|
|
|
|
|
|
|
| |
This commit:
- Adds OgREST class as a wrapper for HTTP REST requests.
- Adds objects folder which will contain available functions for each object in
the OpenGnsys ecosystem (e.g. client, image, etc.).
|
|
Add basic OgCLI structure.
|