• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ssh-vault / ssh-vault / 14317917208

07 Apr 2025 07:35PM UTC coverage: 90.38% (+15.2%) from 75.176%
14317917208

push

github

nbari
fix coverage

2236 of 2474 relevant lines covered (90.38%)

54.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/bin/ssh-vault.rs
1
use anyhow::Result;
2
use ssh_vault::cli::{actions, actions::Action, start};
3
use std::process;
4

5
// Main function
6
fn main() -> Result<()> {
×
7
    // Start the program
8
    let action = start()?;
×
9

10
    // Handle the action
11
    match action {
×
12
        Action::Fingerprint { .. } => {
13
            actions::fingerprint::handle(action)?;
×
14
        }
15
        Action::Create { .. } => {
16
            actions::create::handle(action)?;
×
17
        }
18
        Action::View { .. } => {
19
            actions::view::handle(action)?;
×
20
        }
21
        Action::Edit { .. } => {
22
            actions::edit::handle(action)?;
×
23
        }
24
        Action::Help => {
25
            eprintln!("No command or argument provided, try --help");
×
26

×
27
            // Exit the program with status code 1
×
28
            process::exit(1);
×
29
        }
30
    }
31

32
    Ok(())
×
33
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc