fix tests and lint

This commit is contained in:
André Roth
2024-12-02 22:29:48 +01:00
parent 9d0c7b5ade
commit 4e566b4692
8 changed files with 442 additions and 473 deletions

View File

@@ -9,11 +9,11 @@ import (
)
func aptlyConfigShow(_ *commander.Command, _ []string) error {
show_yaml := context.Flags().Lookup("yaml").Value.Get().(bool)
showYaml := context.Flags().Lookup("yaml").Value.Get().(bool)
config := context.Config()
if show_yaml {
if showYaml {
yamlData, err := yaml.Marshal(&config)
if err != nil {
return fmt.Errorf("error marshaling to YAML: %s", err)