Documentation ¶
Overview ¶
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Index ¶
- Variables
- func CreateConfigJSON() (*os.File, error)
- func CreateYastWorkDir() error
- func FillConfigJSON(configFile *os.File, configBS *ConfigBuildSpec) error
- func GetExistingTargetFromConfig() (string, error)
- func GetPlayerFromExistingConfig() (string, error)
- func RemoveConfigJSON() error
- func SetupYast() error
- func UpdateConfigJSON(playerChange bool, targetChange bool, reset bool) error
- type ConfigBuildSpec
Constants ¶
This section is empty.
Variables ¶
var ( YastWorkDir string DefaultConfigPath string )
var ConfigJsonExists bool
var PlayerChoiceFromTui string
Functions ¶
func CreateConfigJSON ¶
func CreateYastWorkDir ¶
func CreateYastWorkDir() error
func FillConfigJSON ¶
func FillConfigJSON(configFile *os.File, configBS *ConfigBuildSpec) error
func RemoveConfigJSON ¶
func RemoveConfigJSON() error
Types ¶
type ConfigBuildSpec ¶
type ConfigBuildSpec struct { Player string `json:"player"` TargetPreference string `json:"target-preference"` QueryHistory bool `json:"query-history"` }
This function will call interactive tui for taking input of user preferences.
func GetConfigBSFromSetupModel ¶
func GetConfigBSFromSetupModel() (ConfigBuildSpec, error)
func NewConfigBuildSpec ¶
func NewConfigBuildSpec() *ConfigBuildSpec