-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
from build_config import Build, Environments, Github, Templates | ||
from build_config import Github | ||
|
||
from .tools.publisher import Publisher | ||
from .tools.scanner import VirusScanner | ||
from .tools.templater import Templater | ||
from .tools.utils.protocols import CfgBuild, CfgEnvironments, CfgTemplates | ||
|
||
|
||
def do_scan(build: CfgBuild, environments: CfgEnvironments, templates: CfgTemplates) -> None: | ||
publisher = Publisher(build, environments, Github) | ||
VirusScanner().scan_all(build, environments, publisher) | ||
Templater(build, environments, Github, publisher).create(templates, "Readme") | ||
|
||
|
||
if __name__ == "__main__": | ||
publisher = Publisher(Build, Environments, Github) | ||
VirusScanner().scan_all(Build, Environments, publisher) | ||
Templater(Build, Environments, Github, publisher).create(Templates, "Readme") | ||
import build_config | ||
|
||
do_scan(build_config.Build, build_config.Environments, build_config.Templates) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from dev.scan import do_scan | ||
from user_proxy_cmd import cmd_build_config | ||
|
||
if __name__ == "__main__": | ||
do_scan(cmd_build_config.Build, cmd_build_config.Environments, cmd_build_config.Templates) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters