fix: ports all listed in white
This commit is contained in:
@@ -11,8 +11,6 @@ services:
|
|||||||
ipc: private
|
ipc: private
|
||||||
restart: always
|
restart: always
|
||||||
shm_size: 256MB
|
shm_size: 256MB
|
||||||
ports:
|
|
||||||
- "127.0.0.1:4040:4040"
|
|
||||||
networks:
|
networks:
|
||||||
- oxker-example-net
|
- oxker-example-net
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@@ -321,12 +321,8 @@ pub fn ports(
|
|||||||
))
|
))
|
||||||
.fg(Color::Yellow),
|
.fg(Color::Yellow),
|
||||||
)];
|
)];
|
||||||
for (index, item) in ports.0.iter().enumerate() {
|
for item in &ports.0 {
|
||||||
let fg = if index % 2 == 0 {
|
let fg = Color::White;
|
||||||
Color::White
|
|
||||||
} else {
|
|
||||||
Color::Magenta
|
|
||||||
};
|
|
||||||
let strings = item.print();
|
let strings = item.print();
|
||||||
|
|
||||||
let line = vec![
|
let line = vec![
|
||||||
|
|||||||
Reference in New Issue
Block a user