Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IParser ¶
type IParser interface {
Read() (map[string]interface{}, error)
Create()
ExtractCommands()
Refresh()
DeleteSection()
}
IParser defines the interface for parsing operations.
type Parser ¶
Parser is a struct that holds the file information and parsed commands.
func (*Parser) DeleteSection ¶
DeleteSection removes a section from the configuration by its name.
func (*Parser) ExtractCommands ¶
ExtractCommands reads and processes commands from the configuration file.
func (*Parser) Refresh ¶
func (p *Parser) Refresh()
Refresh reloads the commands from the configuration file.
func (*Parser) WriteSection ¶
WriteSection updates or adds a section in the TOML configuration based on the provided template and section name.
Click to show internal directories.
Click to hide internal directories.