Documentation
¶
Index ¶
- func Commands(con *console.Console) []*grumble.Command
- func SetFiles(model interface{}, files []os.DirEntry) error
- type ExplorerModel
- type ProtobufDirEntry
- func (p ProtobufDirEntry) Info() (os.FileInfo, error)
- func (p ProtobufDirEntry) IsDir() bool
- func (p ProtobufDirEntry) ModTime() time.Time
- func (p ProtobufDirEntry) Mode() os.FileMode
- func (p ProtobufDirEntry) Name() string
- func (p ProtobufDirEntry) Size() int64
- func (p ProtobufDirEntry) Sys() interface{}
- func (p ProtobufDirEntry) Type() os.FileMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExplorerModel ¶
type ExplorerModel struct {
FilePicker filepicker.Model
Files []os.DirEntry
// contains filtered or unexported fields
}
func NewExplorer ¶
func NewExplorer(files []os.DirEntry, con *console.Console) *ExplorerModel
func (*ExplorerModel) Init ¶
func (e *ExplorerModel) Init() tea.Cmd
func (*ExplorerModel) View ¶
func (e *ExplorerModel) View() string
type ProtobufDirEntry ¶
ProtobufDirEntry
func (ProtobufDirEntry) IsDir ¶
func (p ProtobufDirEntry) IsDir() bool
func (ProtobufDirEntry) ModTime ¶
func (p ProtobufDirEntry) ModTime() time.Time
func (ProtobufDirEntry) Mode ¶
func (p ProtobufDirEntry) Mode() os.FileMode
func (ProtobufDirEntry) Name ¶
func (p ProtobufDirEntry) Name() string
func (ProtobufDirEntry) Size ¶
func (p ProtobufDirEntry) Size() int64
func (ProtobufDirEntry) Sys ¶
func (p ProtobufDirEntry) Sys() interface{}
func (ProtobufDirEntry) Type ¶
func (p ProtobufDirEntry) Type() os.FileMode
Click to show internal directories.
Click to hide internal directories.