MCPcopy Create free account
hub / github.com/1buran/rHttp / OpenFile

Method OpenFile

fileinput.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24type OpenFileWriteMsg struct{ Id int }
25
26func (f *FileInput) OpenFile() tea.Cmd {
27 switch f.mode {
28 case ReadMode:
29 return func() tea.Msg {
30 return OpenFileReadMsg{f.id}
31 }
32 case WriteMode:
33 return func() tea.Msg {
34 return OpenFileWriteMsg{f.id}
35 }
36 }
37 return nil
38}
39
40func (f *FileInput) SetTitle(s string) {
41 f.widget.Prompt = s

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected