diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-10-11 17:50:19 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-10-11 17:50:47 +0200 |
commit | a4bf35ef28ee1f18cea0541addcbb24d92dfdb62 (patch) | |
tree | bdfb7270563aeb6df710d1522f23b496727f0224 /cli/objects/scopes.py | |
parent | 4e89fe44d0c69406b3f6ec1ca885c93bd6793448 (diff) |
repo: add add_repo function
User can add a new repository to the database using "ogcli add repo":
$ ogcli add repo --name ogcli --address 10.10.10.10
{
"center": 1,
"id": 13,
"ip": "10.10.10.10",
"name": "ogcli"
}
The --center optional parameter is used to set the center column of
"repositorios" table in the database to the specified value. If this
parameter is missing ogServer API will default to center with id 1 (the
default center). This is to not break the repository in the legacy
webconsole users.
Diffstat (limited to 'cli/objects/scopes.py')
0 files changed, 0 insertions, 0 deletions