Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ pub struct PluginHelp {
/// A request from the meta CLI host to a plugin, sent as JSON on stdin.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PluginRequest {
/// The plugin command the user named, e.g. `git status`: the claimed
/// words only. Everything the user typed after them is in `args`.
pub command: String,
#[serde(default)]
pub args: Vec<String>,
Expand Down Expand Up @@ -85,6 +87,9 @@ pub struct PluginRequestOptions {
pub recursive: bool,
#[serde(default)]
pub depth: Option<usize>,
/// `--include` as the user typed it. The host has already applied it
/// (and `exclude_filters`) to `PluginRequest::projects`; a plugin that acts
/// on repos it finds itself must refuse filters it cannot honor.
#[serde(default)]
pub include_filters: Option<Vec<String>>,
#[serde(default)]
Expand Down Expand Up @@ -137,8 +142,9 @@ pub struct ExecutionPlan {
pub struct PlannedCommand {
/// Directory to execute in (relative to meta root or absolute)
pub dir: String,
/// Command to execute
pub cmd: String,
/// The program and its arguments. The host runs them as given, with no
/// shell in between, so no quoting is needed.
pub argv: Vec<String>,
/// Environment variables to set for this command's subprocess
#[serde(default, skip_serializing_if = "Option::is_none")]
pub env: Option<HashMap<String, String>>,
Expand Down
Loading