core/src/main/java/eu/darken/rxshell/cmd/Cmd.java
/**
         * Convenience method for {@link #submit(RxCmdShell)} using {@link Single#blockingGet()}
         * <br>If a shell can't be opened {@link ExitCode#EXCEPTION} will be returned and an error message.
         */
Convenience method for  #submit(RxCmdShell) using  Single#blockingGet()
If a shell can't be opened  ExitCode#EXCEPTION will be returned and an error message.
Convenience method for #submit ( RxCmdShell ) using Single#blockingGet () If a shell can ' t be opened ExitCode#EXCEPTION will be returned and an error message .
public Result execute(RxCmdShell shell) {
            return submit(shell)
                    .onErrorReturn(err -> {
                        final Cmd cmd = Builder.this.build();
                        List<String> oBuffer = cmd.useOutputBuffer ? new ArrayList<>() : null;
                        List<String> eBuffer = cmd.useErrorBuffer ? Collections.singletonList(err.toString()) : null;
                        if (cmd.outputProcessor != null) {
                            cmd.outputProcessor.onComplete();
                        }
                        if (cmd.errorProcessor != null) {
                            cmd.errorProcessor.onNext(err.toString());
                            cmd.errorProcessor.onComplete();
                        }
                        return new Result(cmd, ExitCode.EXCEPTION, oBuffer, eBuffer);
                    })
                    .blockingGet();
        }
public Result execute ( RxCmdShell shell ) { return submit ( shell ) . onErrorReturn ( err -> { final Cmd cmd = Builder . this . build ( ) ; List < String > oBuffer = cmd . useOutputBuffer ? new ArrayList < > ( ) : null ; List < String > eBuffer = cmd . useErrorBuffer ? Collections . singletonList ( err . toString ( ) ) : null ; if ( cmd . outputProcessor != null ) { cmd . outputProcessor . onComplete ( ) ; } if ( cmd . errorProcessor != null ) { cmd . errorProcessor . onNext ( err . toString ( ) ) ; cmd . errorProcessor . onComplete ( ) ; } return new Result ( cmd , ExitCode . EXCEPTION , oBuffer , eBuffer ) ; } ) . blockingGet ( ) ; }
Convenience method for {@link #submit(RxCmdShell)} using {@link Single#blockingGet()}
 <br>If a shell can't be opened {@link ExitCode#EXCEPTION} will be returned and an error message.
Convenience method for { @link #submit ( RxCmdShell ) } using { @link Single#blockingGet () } <br > If a shell can ' t be opened { @link ExitCode#EXCEPTION } will be returned and an error message .