mvn-tree-visualizer 1.5.0__py3-none-any.whl → 1.5.1__py3-none-any.whl
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.
Potentially problematic release.
This version of mvn-tree-visualizer might be problematic. Click here for more details.
- mvn_tree_visualizer/cli.py +2 -4
- mvn_tree_visualizer/validation.py +0 -9
- {mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/METADATA +8 -8
- {mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/RECORD +7 -7
- {mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/WHEEL +0 -0
- {mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/entry_points.txt +0 -0
- {mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/licenses/LICENSE +0 -0
mvn_tree_visualizer/cli.py
CHANGED
|
@@ -4,12 +4,12 @@ from pathlib import Path
|
|
|
4
4
|
from typing import NoReturn
|
|
5
5
|
|
|
6
6
|
from .diagram import create_diagram
|
|
7
|
-
from .exceptions import
|
|
7
|
+
from .exceptions import DependencyParsingError, MvnTreeVisualizerError, OutputGenerationError
|
|
8
8
|
from .file_watcher import FileWatcher
|
|
9
9
|
from .get_dependencies_in_one_file import merge_files
|
|
10
10
|
from .outputs.html_output import create_html_diagram
|
|
11
11
|
from .outputs.json_output import create_json_output
|
|
12
|
-
from .validation import find_dependency_files,
|
|
12
|
+
from .validation import find_dependency_files, validate_dependency_files, validate_output_directory
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def generate_diagram(
|
|
@@ -108,8 +108,6 @@ def generate_diagram(
|
|
|
108
108
|
except MvnTreeVisualizerError as e:
|
|
109
109
|
# Our custom errors already have helpful messages
|
|
110
110
|
print(f"[{timestamp}] ❌ Error: {e}")
|
|
111
|
-
if isinstance(e, DependencyFileNotFoundError):
|
|
112
|
-
print_maven_help()
|
|
113
111
|
except KeyboardInterrupt:
|
|
114
112
|
print(f"\n[{timestamp}] ⏹️ Operation cancelled by user")
|
|
115
113
|
except Exception as e:
|
|
@@ -15,15 +15,6 @@ def find_dependency_files(directory: str, filename: str) -> list[str]:
|
|
|
15
15
|
return found_files
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def print_maven_help() -> None:
|
|
19
|
-
"""Print helpful Maven commands for generating dependency files."""
|
|
20
|
-
print("\n💡 To generate a Maven dependency file, try one of these commands:")
|
|
21
|
-
print(" mvn dependency:tree -DoutputFile=maven_dependency_file")
|
|
22
|
-
print(" mvn dependency:tree > maven_dependency_file")
|
|
23
|
-
print(" mvn dependency:tree -DoutputFile=maven_dependency_file -DoutputType=text")
|
|
24
|
-
print("\n📍 Make sure you're in a directory with a pom.xml file.")
|
|
25
|
-
|
|
26
|
-
|
|
27
18
|
def validate_directory(directory: str) -> None:
|
|
28
19
|
"""Validate that the directory exists and is accessible."""
|
|
29
20
|
if not os.path.exists(directory):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mvn-tree-visualizer
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.1
|
|
4
4
|
Summary: A simple command line tool to visualize the dependency tree of a Maven project in a graphical format.
|
|
5
5
|
Project-URL: source, https://github.com/dyka3773/mvn-tree-visualizer
|
|
6
6
|
Author-email: Iraklis Konsoulas <dyka3773@gmail.com>
|
|
@@ -80,36 +80,36 @@ Use the `mvn-tree-visualizer` command to generate the diagram.
|
|
|
80
80
|
|
|
81
81
|
#### HTML Output (Interactive Diagram)
|
|
82
82
|
```bash
|
|
83
|
-
|
|
83
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "diagram.html" --format html
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
#### JSON Output (Structured Data)
|
|
87
87
|
```bash
|
|
88
|
-
|
|
88
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "dependencies.json" --format json
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
#### With Version Information
|
|
92
92
|
```bash
|
|
93
|
-
|
|
93
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "diagram.html" --show-versions
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
#### With Custom Themes
|
|
97
97
|
```bash
|
|
98
98
|
# Dark theme for low-light environments
|
|
99
|
-
|
|
99
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "diagram.html" --theme dark
|
|
100
100
|
|
|
101
101
|
# Default minimal theme (clean monospace design)
|
|
102
|
-
|
|
102
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "diagram.html"
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
#### JSON Output with Versions
|
|
106
106
|
```bash
|
|
107
|
-
|
|
107
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "dependencies.json" --format json --show-versions
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
#### Watch Mode (Auto-regeneration)
|
|
111
111
|
```bash
|
|
112
|
-
|
|
112
|
+
mvn-tree-visualizer --filename "maven_dependency_file" --output "diagram.html" --watch
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
> **💡 Tip:** In watch mode, the tool will monitor for changes to your Maven dependency files and automatically regenerate the diagram. Perfect for development workflows! Press `Ctrl+C` to stop watching.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
mvn_tree_visualizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
mvn_tree_visualizer/__main__.py,sha256=yIQFAdWjthKAFbSzzRuz5_YGlK0c6BnR2ypjNRDq180,82
|
|
3
|
-
mvn_tree_visualizer/cli.py,sha256=
|
|
3
|
+
mvn_tree_visualizer/cli.py,sha256=Kq29UoFPHEKjWzmrs7b-yn4T1bT76PXx984WD3rRco8,8371
|
|
4
4
|
mvn_tree_visualizer/diagram.py,sha256=UfvP_J4Im4JQLe3EWlY3TsP4tua3oYk5NiCGbZNQwoA,933
|
|
5
5
|
mvn_tree_visualizer/enhanced_template.py,sha256=AwK4gw5U8Ag-RmeD8Y11LXLRSnVzMFZhWja__c2iF4M,9813
|
|
6
6
|
mvn_tree_visualizer/exceptions.py,sha256=R4nnJ0xrOpd84GfPD9rFSDk40etDLoph7iZpj1CCR0c,543
|
|
7
7
|
mvn_tree_visualizer/file_watcher.py,sha256=JtmV1KW08_Az-XqpKhcd342WpxV1vUW-Dge9lodjjJY,2284
|
|
8
8
|
mvn_tree_visualizer/get_dependencies_in_one_file.py,sha256=nXhEhU-dI7tXa3TpoW1pv2t86t1K0yppSw8FYDtmTlQ,1973
|
|
9
9
|
mvn_tree_visualizer/themes.py,sha256=T7vdNVTHPtYYkh4HusGG1MUWk1mJcqFBjCc5IK5l6Dc,6338
|
|
10
|
-
mvn_tree_visualizer/validation.py,sha256=
|
|
10
|
+
mvn_tree_visualizer/validation.py,sha256=UR_v6Jt7IGsgozE3aK0pB-t2-n1ivvS4YKxEa7p4VLQ,3206
|
|
11
11
|
mvn_tree_visualizer/outputs/html_output.py,sha256=Y0IY-UF0UMTa5w8mVFoLidgcW6BUBTxASO0iRo26hH4,5531
|
|
12
12
|
mvn_tree_visualizer/outputs/json_output.py,sha256=cXntw9ndE_BcrmFnuV61cEwZaRMp9Ev0SxaK1SUedlw,2037
|
|
13
|
-
mvn_tree_visualizer-1.5.
|
|
14
|
-
mvn_tree_visualizer-1.5.
|
|
15
|
-
mvn_tree_visualizer-1.5.
|
|
16
|
-
mvn_tree_visualizer-1.5.
|
|
17
|
-
mvn_tree_visualizer-1.5.
|
|
13
|
+
mvn_tree_visualizer-1.5.1.dist-info/METADATA,sha256=F1SJi1YTZyENETyMipYJnojylvqCY3BEu9IbT7pCRpM,8477
|
|
14
|
+
mvn_tree_visualizer-1.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
mvn_tree_visualizer-1.5.1.dist-info/entry_points.txt,sha256=Mu3QZhrlvbYuCxqmluVGi2efgKjkQY6T8Opf-vdb7hU,68
|
|
16
|
+
mvn_tree_visualizer-1.5.1.dist-info/licenses/LICENSE,sha256=4zi6unpe17RUDMBu7ebh14jdbyvyeT-UA3n8Zl7aW74,1075
|
|
17
|
+
mvn_tree_visualizer-1.5.1.dist-info/RECORD,,
|
|
File without changes
|
{mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mvn_tree_visualizer-1.5.0.dist-info → mvn_tree_visualizer-1.5.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|