diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-21 08:52:13 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-21 08:52:13 +0800 |
| commit | c2f95c4002c3a3324752b7308c36cd8a0465e9fd (patch) | |
| tree | f3a924b651cfa105b2dd6ee4e3bac53bad87b581 /main.go | |
| parent | 4528958c13a5047d1e9e30d266996c93175e3731 (diff) | |
style: rename vars shorter to be idiomatic and fix typo
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,11 +24,11 @@ func main() { pkgName := cmd.Args().First() // prompt showLoadingPrompt(fmt.Sprintf("What the heck is \"%s\"", pkgName)) - // search and print - formulae, cask := GetBrewInfo(pkgName) - data := UnifyInfo(formulae, cask, pkgName) + // search, tidy up, and print + formula, cask := GetBrewInfo(pkgName) + stat := NewStatistics(formula, cask, pkgName) hideLoadingPrompt() - PrintInfo(data) + PrintInfo(stat) return nil }, } |
