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

dariusbakunas / cogrs / 13617540422

02 Mar 2025 05:04PM UTC coverage: 32.874% (-1.8%) from 34.692%
13617540422

push

github

dariusbakunas
feat: add version checks and ability to link plugins statically

0 of 144 new or added lines in 13 files covered. (0.0%)

5 existing lines in 3 files now uncovered.

715 of 2175 relevant lines covered (32.87%)

1.09 hits per line

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

0.0
/modules/command/src/main.rs
1
use anyhow::Result;
2
use cogrs_modules::define_module;
3
use cogrs_modules::framework::Module;
4
use cogrs_schema::define_schema;
5
use serde::{Deserialize, Serialize};
6
use serde_json::Value;
7

8
#[derive(Debug, Deserialize, Serialize, Default)]
9
struct Parameters {
10
    cmd: String,
11
}
12

13
define_schema! {
14
    Parameters,
15
    r#"
16
    {
17
        "$schema": "http://json-schema.org/draft-07/schema#",
18
        "title": "Command Module",
19
        "type": "object",
20
        "properties": {
21
            "cmd": { "type": "string", "description": "The command to run." }
22
        },
23
        "additionalProperties": false,
24
        "required": ["cmd"]
25
    }
26
    "#
27
}
28

29
pub struct CommandModule;
30

31
impl Module for CommandModule {
32
    fn schema() -> &'static str {
33
        SCHEMA
34
    }
35

NEW
36
    fn run(inputs: Value) -> Result<()> {
×
NEW
37
        let parameters: Parameters = serde_json::from_value(inputs)?;
×
NEW
38
        let cmd = parameters.cmd.clone();
×
UNCOV
39
        println!("Running command: {}", cmd);
×
40

41
        Ok(())
×
42
    }
43
}
44

45
define_module!(CommandModule);
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