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

tamada / sibling / 21247105177

22 Jan 2026 11:41AM UTC coverage: 61.989% (+2.2%) from 59.751%
21247105177

Pull #40

github

tamada
feat: add logging options and improve command-line help across completions
Pull Request #40: Release/v2.0.3

105 of 171 new or added lines in 4 files covered. (61.4%)

16 existing lines in 2 files now uncovered.

349 of 563 relevant lines covered (61.99%)

4.43 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

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