Compare commits
No commits in common. "f627664244b50686cea235be61fc4da4f1912ed5" and "12dbe87134a790e780301d3de9a7d5fb34b4ae1a" have entirely different histories.
f627664244
...
12dbe87134
16 changed files with 17 additions and 41 deletions
2
examples
2
examples
|
@ -1 +1 @@
|
|||
Subproject commit 0cbb81abdf123a7ce1ff25675f427a550e2dd59f
|
||||
Subproject commit 29164805fbb4670befd826e4a44892f00f84688f
|
|
@ -57,7 +57,7 @@ def main():
|
|||
version=f"%(prog)s version {version}",
|
||||
)
|
||||
|
||||
INTERNAL_PLUGIN_LOCATION = "sshare.plugins"
|
||||
INTERNAL_PLUGIN_LOCATION = "sshare.plugins.default"
|
||||
# Load command line early and set it as the active logger
|
||||
# so that it can be used to report errors while loading and
|
||||
# configuring other loggers
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
import importlib
|
||||
import importlib.util
|
||||
|
||||
from sshare.plugin.config import Flag
|
||||
from sshare.plugin.config import NoDefault
|
||||
from sshare.plugins.config import Flag
|
||||
from sshare.plugins.config import NoDefault
|
||||
|
||||
class PluginManager:
|
||||
def __init__(self, types, logger, config, flags, arg_parser):
|
|
@ -1,15 +0,0 @@
|
|||
# This file is part of SSHare.
|
||||
#
|
||||
# SSHare is free software: you can redistribute it and/or modify it under the terms of
|
||||
# the GNU General Public License as published by the Free Software Foundation,
|
||||
# either version 3 of the License, or (at your option) any later version.
|
||||
#
|
||||
# SSHare is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# SSHare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from .plugin import *
|
|
@ -12,8 +12,8 @@
|
|||
# You should have received a copy of the GNU General Public License along with
|
||||
# SSHare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from sshare.plugin.source import File
|
||||
from sshare.plugin.source import Raw
|
||||
from sshare.plugins.source import File
|
||||
from sshare.plugins.source import Raw
|
||||
|
||||
plugin_type = "name"
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
import time
|
||||
|
||||
from sshare.plugin.config import Argument
|
||||
from sshare.plugin.source import File
|
||||
from sshare.plugins.config import Argument
|
||||
from sshare.plugins.source import File
|
||||
|
||||
plugin_type = "name"
|
||||
|
|
@ -12,9 +12,9 @@
|
|||
# You should have received a copy of the GNU General Public License along with
|
||||
# SSHare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from sshare.plugin.config import Argument
|
||||
from sshare.plugin.config import NoDefault
|
||||
from sshare.plugin.source import File
|
||||
from sshare.plugins.config import Argument
|
||||
from sshare.plugins.config import NoDefault
|
||||
from sshare.plugins.source import File
|
||||
|
||||
plugin_type = "source"
|
||||
|
|
@ -15,9 +15,9 @@
|
|||
import getpass
|
||||
import subprocess
|
||||
|
||||
from sshare.plugin.config import NoDefault
|
||||
from sshare.plugin.source import File
|
||||
from sshare.plugin.source import Raw
|
||||
from sshare.plugins.config import NoDefault
|
||||
from sshare.plugins.source import File
|
||||
from sshare.plugins.source import Raw
|
||||
|
||||
plugin_type = "upload"
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
import sys
|
||||
|
||||
from sshare.plugin.config import Flag
|
||||
from sshare.plugin.source import Raw
|
||||
from sshare.plugins.config import Flag
|
||||
from sshare.plugins.source import Raw
|
||||
|
||||
plugin_type = "source"
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
# You should have received a copy of the GNU General Public License along with
|
||||
# SSHare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from sshare.plugin.config import NoDefault
|
||||
from sshare.plugins.config import NoDefault
|
||||
|
||||
plugin_type = "location"
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys
|
||||
|
||||
print("=> " + sys.stdin.read())
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
for i in range(0, 5):
|
||||
print("\033[91mHello World!")
|
Loading…
Reference in a new issue