vortex-cli 4.0.2__tar.gz → 4.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/PKG-INFO +1 -1
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/setup.cfg +2 -2
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/cli.py +15 -0
- vortex_cli-4.1.1/vortex/colour.py +40 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/delete.py +3 -2
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/grep.py +6 -3
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/log.py +7 -5
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/watch.py +4 -3
- vortex_cli-4.1.1/vortex/docs/Tornado Server Blackbook.pdf +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/main.py +6 -4
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/PKG-INFO +1 -1
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/SOURCES.txt +1 -0
- vortex_cli-4.0.2/vortex/colour.py +0 -26
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/LICENSE +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/README.md +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/setup.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/__init__.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/__main__.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/__init__.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/clean.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/clone.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/code.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/config.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/copy.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/db.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/docs.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/execute.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/find.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/list.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/new.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/commands/upload.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/constants.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/models.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/XmlSchema-1.4.2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/activation-1.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/annogen-0.1.0.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axiom-api-1.2.7.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axiom-dom-1.2.7.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axiom-impl-1.2.7.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-adb-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-adb-codegen-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-ant-plugin-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-clustering-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-codegen-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-corba-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-fastinfoset-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-java2wsdl-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-jaxbri-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-jaxws-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-jaxws-api-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-jibx-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-json-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-jws-api-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-kernel-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-metadata-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-mtompolicy-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-saaj-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-saaj-api-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-spring-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/axis2-xmlbeans-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/backport-util-concurrent-3.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/bcprov-jdk14-131.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-codec-1.10.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-codec-1.3.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-collections4-4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-fileupload-1.2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-httpclient-3.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-io-1.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-logging-1.1.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/commons-logging-1.2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/curvesapi-1.04.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/dom4j-1.6.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/geronimo-annotation_1.0_spec-1.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/httpcore-4.0-beta1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/httpcore-nio-4.0-beta1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/iText-rtf-2.1.3.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-2.1.7.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-pdfa-5.5.1-javadoc.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-pdfa-5.5.1-sources.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-pdfa-5.5.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-xtra-5.5.1-javadoc.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-xtra-5.5.1-sources.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itext-xtra-5.5.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itextpdf-5.5.1-javadoc.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itextpdf-5.5.1-sources.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/itextpdf-5.5.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jalopy-1.5rc3.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jaxb-api-2.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jaxb-impl-2.1.6.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jaxb-xjc-2.1.6.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jaxen-1.1.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jcifs-1.2.13.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jcifs-1.3.3.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jcifs-ext-0.9.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jcommon-1.0.12.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jettison-1.0-RC2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jfreechart-1.0.13.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jfreechart-1.0.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jibx-bind-1.1.5.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/jibx-run-1.1.5.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/json-20101028.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/json-20110712.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/junit-4.12.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/log4j-1.2.15.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/log4j-1.2.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/mail-1.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/mex-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/neethi-2.0.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-examples-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-excelant-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-ooxml-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-ooxml-schemas-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-scratchpad-3.10.1-20140818.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-examples-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-excelant-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-ooxml-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-ooxml-schemas-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.17/poi-scratchpad-3.17.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/shaj-0.5.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/soapmonitor-1.4.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/stax-api-1.0.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/woden-api-1.0M8.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/woden-impl-dom-1.0M8.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/wsdl4j-1.6.2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/wstx-asl-3.2.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xalan-2.7.0.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xercesImpl-2.8.1.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xml-apis-1.3.04.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xml-resolver-1.2.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xmlbeans-2.3.0.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/xmlbeans-2.6.0.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib-int/puakma.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib-int/puakma.vortex.wst_1.1.0.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib-int/retroweaver-rt-1.2.4.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib-int/velocity-1.5.jar +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/soap.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/spinner.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/util.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/workspace.py +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = vortex_cli
|
|
3
|
-
version = 4.
|
|
3
|
+
version = 4.1.1
|
|
4
4
|
description = Vortex CLI
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
@@ -39,7 +39,7 @@ console_scripts =
|
|
|
39
39
|
[options.package_data]
|
|
40
40
|
vortex =
|
|
41
41
|
puakma/**/*.jar
|
|
42
|
-
docs
|
|
42
|
+
docs/*.pdf
|
|
43
43
|
|
|
44
44
|
[flake8]
|
|
45
45
|
max-line-length = 88
|
|
@@ -41,6 +41,17 @@ def _add_design_type_option(
|
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
def _add_colour_option(
|
|
45
|
+
parser: ArgumentParser | _MutuallyExclusiveGroup,
|
|
46
|
+
) -> None:
|
|
47
|
+
parser.add_argument(
|
|
48
|
+
"--no-colour",
|
|
49
|
+
action="store_false",
|
|
50
|
+
dest="use_colour",
|
|
51
|
+
help="Suppress coloured output",
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
44
55
|
def add_code_parser(
|
|
45
56
|
command_parser: _SubParsersAction[ArgumentParser],
|
|
46
57
|
) -> ArgumentParser:
|
|
@@ -192,6 +203,7 @@ def add_watch_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
192
203
|
),
|
|
193
204
|
)
|
|
194
205
|
_add_server_option(watch_parser)
|
|
206
|
+
_add_colour_option(watch_parser)
|
|
195
207
|
|
|
196
208
|
|
|
197
209
|
def add_clean_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
@@ -264,6 +276,7 @@ def add_log_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
264
276
|
log_type_mutex.add_argument("--info-only", action="store_true")
|
|
265
277
|
log_parser.add_argument("--keep-alive", action="store_true")
|
|
266
278
|
_add_server_option(log_parser)
|
|
279
|
+
_add_colour_option(log_parser)
|
|
267
280
|
|
|
268
281
|
|
|
269
282
|
def add_find_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
@@ -313,6 +326,7 @@ def add_grep_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
313
326
|
|
|
314
327
|
_add_design_type_option(grep_design_type_mutex)
|
|
315
328
|
_add_server_option(grep_parser)
|
|
329
|
+
_add_colour_option(grep_parser)
|
|
316
330
|
|
|
317
331
|
|
|
318
332
|
def add_new_parser(
|
|
@@ -359,6 +373,7 @@ def add_delete_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None
|
|
|
359
373
|
)
|
|
360
374
|
delete_parser.add_argument("obj_ids", nargs="+", type=int, metavar="DESIGN_ID")
|
|
361
375
|
_add_server_option(delete_parser)
|
|
376
|
+
_add_colour_option(delete_parser)
|
|
362
377
|
|
|
363
378
|
|
|
364
379
|
def add_db_parser(command_parser: _SubParsersAction[ArgumentParser]) -> None:
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
NORMAL = "\033[m"
|
|
8
|
+
RED = "\033[41m"
|
|
9
|
+
BOLD = "\033[1m"
|
|
10
|
+
GREEN = "\033[42m"
|
|
11
|
+
YELLOW = "\033[43;30m"
|
|
12
|
+
TURQUOISE = "\033[46;30m"
|
|
13
|
+
|
|
14
|
+
_terminal_supports_colour = sys.stdout.isatty() and os.getenv("TERM") != "dumb"
|
|
15
|
+
_use_colour = _terminal_supports_colour
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def set_use_colour(use_colour: bool) -> None:
|
|
19
|
+
global _use_colour
|
|
20
|
+
_use_colour = _terminal_supports_colour and use_colour
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def colour(
|
|
24
|
+
text: str,
|
|
25
|
+
colour: str,
|
|
26
|
+
replace_in: str | None = None,
|
|
27
|
+
use_colour: bool | None = None,
|
|
28
|
+
) -> str:
|
|
29
|
+
_do_colour = _use_colour
|
|
30
|
+
if use_colour is not None:
|
|
31
|
+
_do_colour = _terminal_supports_colour and use_colour
|
|
32
|
+
|
|
33
|
+
if _do_colour:
|
|
34
|
+
coloured_text = f"{colour}{text}{NORMAL}"
|
|
35
|
+
else:
|
|
36
|
+
coloured_text = text
|
|
37
|
+
|
|
38
|
+
if replace_in:
|
|
39
|
+
coloured_text = replace_in.replace(text, coloured_text)
|
|
40
|
+
return coloured_text
|
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import logging
|
|
5
5
|
|
|
6
|
-
from vortex
|
|
6
|
+
from vortex import colour
|
|
7
7
|
from vortex.models import DesignObject
|
|
8
8
|
from vortex.models import PuakmaServer
|
|
9
9
|
from vortex.soap import AppDesigner
|
|
@@ -16,6 +16,7 @@ logger = logging.getLogger("vortex")
|
|
|
16
16
|
def delete(
|
|
17
17
|
workspace: Workspace,
|
|
18
18
|
server: PuakmaServer,
|
|
19
|
+
use_colour: bool,
|
|
19
20
|
obj_ids: list[int],
|
|
20
21
|
) -> int:
|
|
21
22
|
objs = []
|
|
@@ -30,7 +31,7 @@ def delete(
|
|
|
30
31
|
logger.error(f"No cloned Design Object found with ID {obj_ids}")
|
|
31
32
|
return 1
|
|
32
33
|
|
|
33
|
-
_deleted =
|
|
34
|
+
_deleted = colour.colour("deleted", colour.RED, use_colour=use_colour)
|
|
34
35
|
print(f"The following Design Objects will be {_deleted}:\n")
|
|
35
36
|
render_objects(objs)
|
|
36
37
|
if input("\n[Y/y] to continue:") not in ["Y", "y"]:
|
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import functools
|
|
4
4
|
import re
|
|
5
5
|
|
|
6
|
-
from vortex
|
|
6
|
+
from vortex import colour
|
|
7
7
|
from vortex.models import DesignObject
|
|
8
8
|
from vortex.models import DesignType
|
|
9
9
|
from vortex.models import PuakmaServer
|
|
@@ -13,6 +13,7 @@ from vortex.workspace import Workspace
|
|
|
13
13
|
def grep(
|
|
14
14
|
workspace: Workspace,
|
|
15
15
|
server: PuakmaServer,
|
|
16
|
+
use_colour: bool,
|
|
16
17
|
pattern: str,
|
|
17
18
|
*,
|
|
18
19
|
app_ids: list[int] | None = None,
|
|
@@ -21,6 +22,8 @@ def grep(
|
|
|
21
22
|
output_paths: bool = False,
|
|
22
23
|
exclude_resources: bool = True,
|
|
23
24
|
) -> int:
|
|
25
|
+
colour.set_use_colour(use_colour)
|
|
26
|
+
|
|
24
27
|
if exclude_resources:
|
|
25
28
|
design_types = [t for t in DesignType if t != DesignType.RESOURCE]
|
|
26
29
|
|
|
@@ -77,5 +80,5 @@ def _output(
|
|
|
77
80
|
else:
|
|
78
81
|
matched_text = match.group().decode()
|
|
79
82
|
line = text.splitlines()[line_indx].strip()
|
|
80
|
-
new_text =
|
|
81
|
-
print(f"{
|
|
83
|
+
new_text = colour.colour(matched_text, colour.RED, line)
|
|
84
|
+
print(f"{colour.colour(obj.file_name, colour.BOLD)}:{line_no} {new_text}")
|
|
@@ -6,21 +6,22 @@ from datetime import datetime
|
|
|
6
6
|
|
|
7
7
|
import tabulate
|
|
8
8
|
|
|
9
|
+
from vortex import colour
|
|
9
10
|
from vortex import util
|
|
10
|
-
from vortex.colour import Colour
|
|
11
11
|
from vortex.models import LogItem
|
|
12
12
|
from vortex.models import PuakmaServer
|
|
13
13
|
from vortex.spinner import Spinner
|
|
14
14
|
|
|
15
15
|
_LOG_TYPE_COLOUR_MAP = {
|
|
16
|
-
"D":
|
|
17
|
-
"I":
|
|
18
|
-
"E":
|
|
16
|
+
"D": colour.YELLOW,
|
|
17
|
+
"I": colour.TURQUOISE,
|
|
18
|
+
"E": colour.RED,
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def log(
|
|
23
23
|
server: PuakmaServer,
|
|
24
|
+
use_colour: bool,
|
|
24
25
|
limit: int,
|
|
25
26
|
source_filter: str | None,
|
|
26
27
|
messsage_filter: str | None,
|
|
@@ -30,6 +31,7 @@ def log(
|
|
|
30
31
|
keep_alive: bool = False,
|
|
31
32
|
delay: int = 3,
|
|
32
33
|
) -> int:
|
|
34
|
+
colour.set_use_colour(use_colour)
|
|
33
35
|
with server as s:
|
|
34
36
|
get_logs = functools.partial(
|
|
35
37
|
s.get_last_log_items,
|
|
@@ -68,7 +70,7 @@ def _format_log_rows(logs: list[LogItem]) -> list[tuple[str, str, str]]:
|
|
|
68
70
|
for log in sorted(logs, key=lambda x: x.date):
|
|
69
71
|
log_colour = _LOG_TYPE_COLOUR_MAP[log.type]
|
|
70
72
|
row = (
|
|
71
|
-
|
|
73
|
+
colour.colour(datetime.strftime(log.date, "%H:%M:%S"), log_colour),
|
|
72
74
|
util.shorten_or_pad_text(log.item_source, min_len=30),
|
|
73
75
|
log.msg,
|
|
74
76
|
)
|
|
@@ -11,7 +11,7 @@ from watchfiles import awatch
|
|
|
11
11
|
from watchfiles import BaseFilter
|
|
12
12
|
from watchfiles import Change
|
|
13
13
|
|
|
14
|
-
from vortex
|
|
14
|
+
from vortex import colour
|
|
15
15
|
from vortex.models import DesignObject
|
|
16
16
|
from vortex.models import DesignObjectAmbiguousError
|
|
17
17
|
from vortex.models import DesignObjectNotFound
|
|
@@ -281,7 +281,7 @@ class WorkspaceWatcher:
|
|
|
281
281
|
|
|
282
282
|
def _confirm_change(self, change: Change, obj: DesignObject) -> bool:
|
|
283
283
|
action = {
|
|
284
|
-
change.deleted:
|
|
284
|
+
change.deleted: colour.colour("delete", colour.RED),
|
|
285
285
|
change.modified: "update",
|
|
286
286
|
change.added: "create",
|
|
287
287
|
}[change]
|
|
@@ -327,7 +327,7 @@ def _validate_java_class_file(
|
|
|
327
327
|
return True, ""
|
|
328
328
|
|
|
329
329
|
|
|
330
|
-
def watch(workspace: Workspace, server: PuakmaServer) -> int:
|
|
330
|
+
def watch(workspace: Workspace, server: PuakmaServer, use_colour: bool) -> int:
|
|
331
331
|
if not workspace.listdir():
|
|
332
332
|
logger.error(f"No application directories to watch in workspace '{workspace}'")
|
|
333
333
|
return 1
|
|
@@ -335,5 +335,6 @@ def watch(workspace: Workspace, server: PuakmaServer) -> int:
|
|
|
335
335
|
workspace.exclusive_lock(),
|
|
336
336
|
Spinner("Watching workspace, ^C to stop") as spinner,
|
|
337
337
|
):
|
|
338
|
+
colour.set_use_colour(use_colour)
|
|
338
339
|
watcher = WorkspaceWatcher(workspace, server, spinner)
|
|
339
340
|
return asyncio.run(watcher.watch())
|
|
Binary file
|
|
@@ -73,13 +73,13 @@ def main(argv: Sequence[str] | None = None) -> int:
|
|
|
73
73
|
"--verbose",
|
|
74
74
|
"--debug",
|
|
75
75
|
"-v",
|
|
76
|
-
help="
|
|
76
|
+
help="Show debug messages",
|
|
77
77
|
action="store_true",
|
|
78
78
|
)
|
|
79
79
|
parser.add_argument(
|
|
80
80
|
"--init",
|
|
81
81
|
action="store_true",
|
|
82
|
-
help="
|
|
82
|
+
help="Initialise the workspace and config files, if they don't already exist",
|
|
83
83
|
)
|
|
84
84
|
|
|
85
85
|
command_parser = parser.add_subparsers(dest="command")
|
|
@@ -177,10 +177,11 @@ def main(argv: Sequence[str] | None = None) -> int:
|
|
|
177
177
|
export_pmx_path=args.pmx,
|
|
178
178
|
)
|
|
179
179
|
elif args.command == "watch":
|
|
180
|
-
return watch(workspace, server)
|
|
180
|
+
return watch(workspace, server, args.use_colour)
|
|
181
181
|
elif args.command == "log":
|
|
182
182
|
return log(
|
|
183
183
|
server,
|
|
184
|
+
args.use_colour,
|
|
184
185
|
args.limit,
|
|
185
186
|
args.source,
|
|
186
187
|
args.message,
|
|
@@ -205,6 +206,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
|
|
205
206
|
return grep(
|
|
206
207
|
workspace,
|
|
207
208
|
server,
|
|
209
|
+
args.use_colour,
|
|
208
210
|
args.pattern,
|
|
209
211
|
app_ids=args.app_ids,
|
|
210
212
|
design_types=args.design_type,
|
|
@@ -227,7 +229,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
|
|
227
229
|
save_action=args.save_action,
|
|
228
230
|
)
|
|
229
231
|
elif args.command == "delete":
|
|
230
|
-
return delete(workspace, server, args.obj_ids)
|
|
232
|
+
return delete(workspace, server, args.use_colour, args.obj_ids)
|
|
231
233
|
elif args.command == "copy":
|
|
232
234
|
return copy(
|
|
233
235
|
workspace,
|
|
@@ -30,6 +30,7 @@ vortex/commands/log.py
|
|
|
30
30
|
vortex/commands/new.py
|
|
31
31
|
vortex/commands/upload.py
|
|
32
32
|
vortex/commands/watch.py
|
|
33
|
+
vortex/docs/Tornado Server Blackbook.pdf
|
|
33
34
|
vortex/puakma/lib/XmlSchema-1.4.2.jar
|
|
34
35
|
vortex/puakma/lib/activation-1.1.jar
|
|
35
36
|
vortex/puakma/lib/annogen-0.1.0.jar
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import os
|
|
4
|
-
import sys
|
|
5
|
-
from enum import Enum
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Colour(Enum):
|
|
9
|
-
NORMAL = "\033[m"
|
|
10
|
-
RED = "\033[41m"
|
|
11
|
-
BOLD = "\033[1m"
|
|
12
|
-
GREEN = "\033[42m"
|
|
13
|
-
YELLOW = "\033[43;30m"
|
|
14
|
-
TURQUOISE = "\033[46;30m"
|
|
15
|
-
|
|
16
|
-
_use_colour = sys.stdout.isatty() and os.getenv("TERM") != "dumb"
|
|
17
|
-
|
|
18
|
-
@classmethod
|
|
19
|
-
def highlight(cls, text: str, colour: Colour, replace_in: str | None = None) -> str:
|
|
20
|
-
if cls._use_colour:
|
|
21
|
-
new_text = f"{colour.value}{text}{cls.NORMAL.value}"
|
|
22
|
-
else:
|
|
23
|
-
new_text = text
|
|
24
|
-
if replace_in:
|
|
25
|
-
new_text = replace_in.replace(text, new_text)
|
|
26
|
-
return new_text
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/geronimo-annotation_1.0_spec-1.1.jar
RENAMED
|
File without changes
|
{vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/geronimo-stax-api_1.0_spec-1.0.1.jar
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-examples-3.10.1-20140818.jar
RENAMED
|
File without changes
|
{vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-excelant-3.10.1-20140818.jar
RENAMED
|
File without changes
|
{vortex_cli-4.0.2 → vortex_cli-4.1.1}/vortex/puakma/lib/poi_3.10.1/poi-ooxml-3.10.1-20140818.jar
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|