Skip to content

Commit

Permalink
Merge pull request #403 from MarcoLugo/yaml_syntax_highlighting
Browse files Browse the repository at this point in the history
add yaml syntax highlighting
  • Loading branch information
deepu105 authored Jan 5, 2024
2 parents 09d91e1 + ff29bfd commit 89f96a0
Show file tree
Hide file tree
Showing 23 changed files with 355 additions and 32 deletions.
222 changes: 214 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ ratatui = { version = "0.23.0", default-features = false, features = [
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
syntect = "5.1.0"
syntect-tui = "2.0.0"
clap = { version = "4.3.24", features = [
"help",
"usage",
Expand Down
2 changes: 1 addition & 1 deletion src/app/configmaps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
draw_resource_tab,
network::Network,
ui::utils::{
draw_describe_block, draw_resource_block, get_describe_active, get_resource_title,
draw_describe_block, draw_yaml_block, draw_resource_block, get_describe_active, get_resource_title,
style_primary, title_with_dual_style, ResourceTableProps, COPY_HINT, DESCRIBE_AND_YAML_HINT,
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/cronjobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
draw_resource_tab,
network::Network,
ui::utils::{
draw_describe_block, draw_resource_block, get_describe_active, get_resource_title,
draw_describe_block, draw_yaml_block, draw_resource_block, get_describe_active, get_resource_title,
style_primary, title_with_dual_style, ResourceTableProps, COPY_HINT,
DESCRIBE_YAML_AND_ESC_HINT,
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/daemonsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
draw_resource_tab,
network::Network,
ui::utils::{
draw_describe_block, draw_resource_block, get_describe_active, get_resource_title,
draw_describe_block, draw_yaml_block, draw_resource_block, get_describe_active, get_resource_title,
style_primary, title_with_dual_style, ResourceTableProps, COPY_HINT, DESCRIBE_AND_YAML_HINT,
},
};
Expand Down
Loading

0 comments on commit 89f96a0

Please sign in to comment.