generated from delameter/skeleton-python3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pydeps.sh
executable file
·47 lines (41 loc) · 1.22 KB
/
pydeps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#------------------------------------------------------------------------------
# macedon [CLI web service availability verifier]
# (c) 2022-2023 A. Shavykin <0.delameter@gmail.com>
#------------------------------------------------------------------------------
PYDEPS_PATH="${1:?pydeps path required}"
PROJECT_NAME="${2:?Project name required}"
OUTPUT_PATH="${3:?Output path required}"
$PYDEPS_PATH "${PROJECT_NAME}" \
--rmprefix "${PROJECT_NAME}". \
--start-color 120 \
--only "${PROJECT_NAME}" \
-o "${OUTPUT_PATH}"/structure.svg
$PYDEPS_PATH "${PROJECT_NAME}" \
--rmprefix "${PROJECT_NAME}". \
--start-color 120 \
--show-cycle \
--no-show \
-o "${OUTPUT_PATH}"/cycles.svg
$PYDEPS_PATH "${PROJECT_NAME}" \
--start-color 0 \
--max-bacon 3 \
--max-mod 0 \
--max-cluster 100 \
--keep \
--no-show \
-o "${OUTPUT_PATH}"/imports-deep.svg
$PYDEPS_PATH "${PROJECT_NAME}" \
--start-color 0 \
--max-bacon 3 \
--cluster \
--collapse \
--no-show \
-o "${OUTPUT_PATH}"/imports-cross.svg
$PYDEPS_PATH "${PROJECT_NAME}" \
--start-color 0 \
--max-bacon 12 \
--max-mod 1 \
--cluster \
--collapse \
--no-show \
-o "${OUTPUT_PATH}"/imports-far.svg