(opts []ShellOption)
| 144 | } |
| 145 | |
| 146 | func (s *Shell) apply(opts []ShellOption) error { |
| 147 | for _, fn := range opts { |
| 148 | if err := fn(s); err != nil { |
| 149 | return err |
| 150 | } |
| 151 | } |
| 152 | return nil |
| 153 | } |
| 154 | |
| 155 | // Close finalizes the connection. |
| 156 | func (s *Shell) Close() error { |