libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::ExecResult Struct Reference

#include <exec.hpp>

Public Member Functions

 operator bool () const noexcept
 
const ExecResultcheck () const
 Throws ChannelError with the captured stderr if exit_code != 0.
 

Public Attributes

int exit_code = -1
 
std::optional< std::string > exit_signal
 
std::string stdout_text
 
std::string stderr_text
 
bool stdout_truncated = false
 
bool stderr_truncated = false
 

Member Function Documentation

◆ operator bool()

sshpp::ExecResult::operator bool ( ) const
inlineexplicitnoexcept

◆ check()

SSHPP_INLINE const ExecResult & sshpp::ExecResult::check ( ) const

Throws ChannelError with the captured stderr if exit_code != 0.

Member Data Documentation

◆ exit_code

int sshpp::ExecResult::exit_code = -1

◆ exit_signal

std::optional<std::string> sshpp::ExecResult::exit_signal

◆ stdout_text

std::string sshpp::ExecResult::stdout_text

◆ stderr_text

std::string sshpp::ExecResult::stderr_text

◆ stdout_truncated

bool sshpp::ExecResult::stdout_truncated = false

◆ stderr_truncated

bool sshpp::ExecResult::stderr_truncated = false

The documentation for this struct was generated from the following files: