mirror of https://git.48k.eu/ogcli/
parent
a2f1056c40
commit
5f922571e2
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from cli.objects.client import OgClient
|
||||
from cli.objects.scopes import OgScope
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
import argparse
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
import argparse
|
||||
import re
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from urllib.parse import urlparse
|
||||
from cli.utils import *
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from cli.utils import *
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from cli.utils import *
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
class OgScope():
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from cli.utils import *
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
def scope_lookup(scope_id, scope_type, d):
|
||||
if scope_id == d.get('id') and scope_type == d.get('type'):
|
||||
|
|
7
ogcli
7
ogcli
|
@ -1,12 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
#
|
||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
||||
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the
|
||||
# Free Software Foundation, version 3.
|
||||
#
|
||||
# Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
from cli.cli import OgCLI
|
||||
import argparse
|
||||
|
|
Loading…
Reference in New Issue