Commit d349023
committed
Refactored cmd2 to better account for our use of Rich.
* Added string_utils.py which contains all string utility functions.
This includes quoting and alignment functions from utils.py.
This also includes style-related functions from ansi.py.
* Added colors.py which contains all color names supported by Rich.
* Added styles.py which contains the names of all cmd2-specific styles.
* Moved string styling functionality from ansi.py to string_utils.py.
* Removed all text style Enums from ansi.py since we use Rich.
* Renamed ansi.py to terminal_utils.py to reflect the functions left in it.
* Removed table_creation.py since we use Rich tables now.1 parent db2654c commit d349023
File tree
33 files changed
+1098
-4680
lines changed- .github
- cmd2
- docs
- features
- examples
- tests
33 files changed
+1098
-4680
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 13 | + | |
| 14 | + | |
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
| |||
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
| 48 | + | |
56 | 49 | | |
57 | 50 | | |
58 | 51 | | |
| |||
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 59 | | |
77 | 60 | | |
78 | 61 | | |
| |||
98 | 81 | | |
99 | 82 | | |
100 | 83 | | |
| 84 | + | |
101 | 85 | | |
102 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
103 | 91 | | |
104 | 92 | | |
105 | 93 | | |
| |||
0 commit comments