Skip to content

Commit

Permalink
Minor refactoring; Add 'Features' section in README
Browse files Browse the repository at this point in the history
  • Loading branch information
tehzhed committed Jun 12, 2022
1 parent 10fb86f commit cd80b50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Cargo.lock
**/*.rs.bk

# macOS-specific
.DS_Store
.DS_Store
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Simple port forwarding TUI for Kubernetes 💻↔⎈

![portnord in action](./media/portnord.mov)

## ✨ Features
- List all ports exposed by services in a given namespace.
- Toggle port forwarding for a specific port exposed by a service.
- Toggle port forwarding for all ports exposed by a service.

## 🧩 Usage

```
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ async fn run_app<'a>(ui: &mut ui::UI<'a>) -> ! {
fn exit_app(error: Option<String>) -> ! {
if let Some(err_msg) = error {
println!("An error occurred: {}", err_msg);
std::process::exit(1);
std::process::exit(1)
} else {
std::process::exit(0);
std::process::exit(0)
}
}

#[tokio::main]
async fn main() -> Result<(), kube::Error> {
async fn main() -> Result<(), Box<dyn std::error::Error>> {

let Args { namespace: namespace_opt } = Args::collect();

Expand Down

0 comments on commit cd80b50

Please sign in to comment.