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

tamada / sibling / 21340919193

25 Jan 2026 10:46PM UTC coverage: 64.325% (+2.3%) from 61.989%
21340919193

Pull #41

github

tamada
Merge branch 'release/v2.0.4' of github.com:tamada/sibling into release/v2.0.4
Pull Request #41: Release/v2.0.4

57 of 109 new or added lines in 5 files covered. (52.29%)

4 existing lines in 3 files now uncovered.

348 of 541 relevant lines covered (64.33%)

4.72 hits per line

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

0.0
/cli/src/init.rs
1
use rust_embed::Embed;
2

3
use sibling::{Error, Result};
4

5
#[derive(Embed)]
×
6
#[folder = "../assets/init"]
7
struct Assets;
8

NEW
9
pub(crate) fn generate_init_script(shell_name: &str) -> Result<String> {
×
10
    let script_file = match shell_name.to_lowercase().as_str() {
×
NEW
11
        "bash" | "zsh" => "init.bash",
×
12
        _ => return Err(Error::Fatal(format!("{shell_name}: Unsupported shell"))),
×
13
    };
14
    match Assets::get(script_file) {
×
15
        Some(file) => match std::str::from_utf8(file.data.as_ref()) {
×
16
            Ok(script) => Ok(script.to_string()),
×
17
            Err(_) => Err(Error::Fatal(format!("{script_file}: Invalid script"))),
×
18
        },
19
        None => Err(Error::NotFound(script_file.into())),
×
20
    }
21
}
×
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

© 2026 Coveralls, Inc