MCPcopy Create free account
hub / github.com/diillson/chatcli / getRemoteClient

Method getRemoteClient

cli/cli_session.go:49–54  ·  view source on GitHub ↗

getRemoteClient extracts the *remote.Client from cli.Client via type assertion.

()

Source from the content-addressed store, hash-verified

47
48// getRemoteClient extracts the *remote.Client from cli.Client via type assertion.
49func (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.

Callers 4

handleSaveSessionMethod · 0.95
handleLoadSessionMethod · 0.95
handleListSessionsMethod · 0.95
handleDeleteSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected