Compare commits
2 commits
d67d2bc518
...
fd32d625a8
Author | SHA1 | Date | |
---|---|---|---|
fd32d625a8 | |||
34e0527daf |
3 changed files with 12 additions and 28 deletions
2
examples
2
examples
|
@ -1 +1 @@
|
|||
Subproject commit a1d5760b4936690ad9c1d925c16519b8e7edcc6b
|
||||
Subproject commit 49bd55b9951270f233683f7bd51f70f8eab43985
|
|
@ -1,17 +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 main import main
|
||||
|
||||
main()
|
|
@ -24,11 +24,12 @@ import tomllib
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from version import version
|
||||
|
||||
from plugins.config import Flag
|
||||
from plugins.config import NoArgument
|
||||
from plugins.config import NoDefault
|
||||
from sshare.plugins.config import Flag
|
||||
from sshare.plugins.config import NoArgument
|
||||
from sshare.plugins.config import NoDefault
|
||||
|
||||
from sshare.version import version
|
||||
|
||||
class Congloggerate:
|
||||
def __init__(self, loggers):
|
||||
|
@ -70,17 +71,17 @@ def main():
|
|||
# so that it can be used to report errors while loading and
|
||||
# configuring plugins
|
||||
# i.e. before other logging plugins have had a chance to be initialised
|
||||
logger = importlib.import_module("plugins.default.command_line")
|
||||
logger = importlib.import_module("sshare.plugins.default.command_line")
|
||||
fatalicize(logger)
|
||||
|
||||
# Load inbuilt plugins
|
||||
plugins_flat = [
|
||||
Plugin("command_line", logger),
|
||||
Plugin("file", importlib.import_module("plugins.default.file")),
|
||||
Plugin("current_time", importlib.import_module("plugins.default.current_time")),
|
||||
Plugin("append_type", importlib.import_module("plugins.default.append_type")),
|
||||
Plugin("ssh", importlib.import_module("plugins.default.ssh")),
|
||||
Plugin("log_result", importlib.import_module("plugins.default.log_result")),
|
||||
Plugin("file", importlib.import_module("sshare.plugins.default.file")),
|
||||
Plugin("current_time", importlib.import_module("sshare.plugins.default.current_time")),
|
||||
Plugin("append_type", importlib.import_module("sshare.plugins.default.append_type")),
|
||||
Plugin("ssh", importlib.import_module("sshare.plugins.default.ssh")),
|
||||
Plugin("log_result", importlib.import_module("sshare.plugins.default.log_result")),
|
||||
]
|
||||
plugins = {}
|
||||
for type in [ "logger", "source", "name", "upload", "result" ]:
|
||||
|
|
Loading…
Reference in a new issue