mirror of https://git.48k.eu/ogcli/
parent
a2f1056c40
commit
5f922571e2
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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.client import OgClient
|
||||||
from cli.objects.scopes import OgScope
|
from cli.objects.scopes import OgScope
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 argparse
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 argparse
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 urllib.parse import urlparse
|
||||||
from cli.utils import *
|
from cli.utils import *
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 *
|
from cli.utils import *
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 *
|
from cli.utils import *
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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():
|
class OgScope():
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2021 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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 *
|
from cli.utils import *
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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):
|
def scope_lookup(scope_id, scope_type, d):
|
||||||
if scope_id == d.get('id') and scope_type == d.get('type'):
|
if scope_id == d.get('id') and scope_type == d.get('type'):
|
||||||
|
|
7
ogcli
7
ogcli
|
@ -1,12 +1,11 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
#
|
# Copyright (C) 2020-2021 Soleta Networks <info@soleta.eu>
|
||||||
# Copyright (C) 2020 Soleta Networks <info@soleta.eu>
|
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it under
|
# 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
|
# 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
|
from cli.cli import OgCLI
|
||||||
import argparse
|
import argparse
|
||||||
|
|
Loading…
Reference in New Issue