Skip to main content

Module cli

Module cli 

Source
Expand description

CLI module for bssh

This module provides command-line interface parsing for bssh, including:

  • Standard bssh CLI (Cli)
  • pdsh compatibility layer (pdsh submodule)

§Architecture

The CLI module is structured as follows:

  • bssh.rs - Main bssh CLI parser with all standard options
  • pdsh.rs - pdsh-compatible CLI parser for drop-in replacement mode

§pdsh Compatibility Mode

bssh can operate in pdsh compatibility mode, activated by:

  1. Setting BSSH_PDSH_COMPAT=1 environment variable
  2. Symlinking bssh to “pdsh” and invoking via that name
  3. Using the --pdsh-compat flag

See the pdsh module documentation for details on option mapping.

Re-exports§

pub use pdsh::has_pdsh_compat_flag;
pub use pdsh::is_pdsh_compat_mode;
pub use pdsh::remove_pdsh_compat_flag;
pub use pdsh::PdshCli;
pub use pdsh::QueryResult;
pub use pdsh::PDSH_COMPAT_ENV_VAR;

Modules§

pdsh
pdsh compatibility layer for bssh

Structs§

Cli

Enums§

Commands