getRemoteClient extracts the *remote.Client from cli.Client via type assertion.
()
| 47 | |
| 48 | // getRemoteClient extracts the *remote.Client from cli.Client via type assertion. |
| 49 | func (cli *ChatCLI) getRemoteClient() *remote.Client { |
| 50 | if rc, ok := cli.Client.(*remote.Client); ok { |
| 51 | return rc |
| 52 | } |
| 53 | return nil |
| 54 | } |
| 55 | |
| 56 | // askSessionChoice displays an interactive prompt with the given options and returns the user's choice. |
| 57 | // options is a list of i18n keys to display; validChoices maps single-char inputs to return values. |
no outgoing calls
no test coverage detected