( cmd *cobra.Command, cfg storage, filename string, profile string, key string, value string, )
| 75 | } |
| 76 | |
| 77 | func profileUpdateEntry( |
| 78 | cmd *cobra.Command, |
| 79 | cfg storage, |
| 80 | filename string, |
| 81 | profile string, |
| 82 | key string, |
| 83 | value string, |
| 84 | ) error { |
| 85 | cfg.Store(profile, key, value) |
| 86 | |
| 87 | err := cfg.Save(filename) |
| 88 | if err != nil { |
| 89 | return err |
| 90 | } |
| 91 | |
| 92 | ui.Println(cmd, ui.SuccessStyle, "Successfully stored `%s=%s` to `%s` profile.\n", key, value, profile) |
| 93 | |
| 94 | return nil |
| 95 | } |
| 96 | |
| 97 | //nolint:funlen |
| 98 | func profileUpdateEntries( |
no test coverage detected