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

dcdpr / jp / 24128084162

08 Apr 2026 09:24AM UTC coverage: 62.329% (-2.0%) from 64.307%
24128084162

Pull #521

github

web-flow
Merge 7c1ff4817 into 9ea8e05a0
Pull Request #521: feat(plugin): Add command plugin system (RFD 072)

118 of 1184 new or added lines in 15 files covered. (9.97%)

5 existing lines in 2 files now uncovered.

20176 of 32370 relevant lines covered (62.33%)

256.72 hits per line

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

0.0
/crates/jp_cli/src/cmd/plugin.rs
1
//! Plugin management and dispatch.
2
//!
3
//! This module handles:
4
//! - `jp plugin list|install|update` management subcommands
5
//! - External plugin dispatch (spawning `jp-<name>` binaries)
6
//!
7
//! See: `docs/rfd/D17-command-plugin-system.md`
8

9
pub(crate) mod dispatch;
10
mod install;
11
mod list;
12
pub(crate) mod registry;
13
mod update;
14

15
pub(crate) use dispatch::run_plugin;
16

17
use crate::cmd;
18

19
/// `jp plugin` subcommand group for managing plugins.
20
#[derive(Debug, clap::Args)]
21
pub(crate) struct PluginManagement {
22
    #[command(subcommand)]
23
    command: PluginCmd,
24
}
25

26
#[derive(Debug, clap::Subcommand)]
27
enum PluginCmd {
28
    /// List available and installed plugins.
29
    #[command(visible_alias = "ls")]
30
    List(list::List),
31

32
    /// Install a plugin from the registry.
33
    Install(install::Install),
34

35
    /// Refresh the plugin registry cache and check for updates.
36
    Update(update::Update),
37
}
38

39
impl PluginManagement {
NEW
40
    pub(crate) fn run(&self) -> cmd::Output {
×
NEW
41
        match &self.command {
×
NEW
42
            PluginCmd::List(cmd) => cmd.run(),
×
NEW
43
            PluginCmd::Install(cmd) => cmd.run(),
×
NEW
44
            PluginCmd::Update(cmd) => cmd.run(),
×
45
        }
NEW
46
    }
×
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc