Documentation ¶
Overview ¶
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- func CheckLocale(mRef *map[string]string) error
- func EnvUpdate(rootdir string, opts *EnvUpdateOpts) error
- func EtcUpdate(rootdir string, opts *EtcUpdateOpts) error
- func ParseEnvFile(file string) (map[string]string, error)
- func ParseEnvd(rootdir string, opts *EnvUpdateOpts) (map[string]string, error)
- type EnvUpdateOpts
- type EtcUpdateConf
- type EtcUpdateOpts
- type EtcUpdateTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLocale ¶
func EnvUpdate ¶
func EnvUpdate(rootdir string, opts *EnvUpdateOpts) error
func EtcUpdate ¶
func EtcUpdate(rootdir string, opts *EtcUpdateOpts) error
Types ¶
type EnvUpdateOpts ¶
type EnvUpdateOpts struct { EnvSpaceSeparated []string EnvColonSeparated []string EnvSingleValue []string WithLdConfig bool PrelinkCapable bool DryRun bool Debug bool Systemd bool Csh bool }
func NewEnvUpdateOpts ¶
func NewEnvUpdateOpts() *EnvUpdateOpts
type EtcUpdateConf ¶
type EtcUpdateConf struct { // mode - true for text, false for menu (support incomplete) ModeText bool `yaml:"mode" json:"mode"` // Whether to clear the term prior to each display or not ClearTerm bool `yaml:"clear_term" json:"mode"` // Whether trivial/comment changes should be automerged EuAutomerge bool `yaml:"eu_automerge" json:"eu_automerge"` // arguments used whenever rm is called RmOpts string `yaml:"rm_opts" json:"rm_opts"` // arguments used whenever mv is called MvOpts string `yaml:"mv_opts" json:"mv_opts"` // arguments used whenever cp is called CpOpts string `yaml:"cp_opts" json:"cp_opts"` // set the pager for use with diff commands (this will // cause the PAGER environment variable to be ignored) Pager string `yaml:"pager,omitempty" json:"pager,omitempty"` // To enable when is used an editor as diff commands UsingEditor bool `yaml:"using_editor,omitempty" json:"using_editor,omitempty"` // Command to use for diff DiffCommand string `yaml:"diff_command" json:"diff_command"` // Command to use for merging files MergeCommand string `yaml:"merge_command" json:"merge_command"` }
func NewEtcUpdateConf ¶
func NewEtcUpdateConf() *EtcUpdateConf
func NewEtcUpdateConfFromFile ¶
func NewEtcUpdateConfFromFile(f string) *EtcUpdateConf
func (*EtcUpdateConf) String ¶
func (c *EtcUpdateConf) String() string
type EtcUpdateOpts ¶
func NewEtcUpdateOpts ¶
func NewEtcUpdateOpts() *EtcUpdateOpts
type EtcUpdateTask ¶
type EtcUpdateTask struct { Rootdir string Opts *EtcUpdateOpts Conf *EtcUpdateConf FilesMap map[string][]string AutomergeAll bool DiscardAll bool }
func (*EtcUpdateTask) DelFileConfig ¶
func (task *EtcUpdateTask) DelFileConfig(f, cfg string)
Click to show internal directories.
Click to hide internal directories.