diff --git a/README.md b/README.md index 3e32195..72ae793 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ nostromo is a CLI to manage aliases through simple commands to add and remove scoped aliases and substitutions.

- nostromo + nostromo

Managing aliases can be tedious and difficult to set up. nostromo makes this process easy and reliable. The tool adds shortcuts to your `.bashrc` / `.zshrc` that call into the nostromo binary. It reads and manages all aliases within its manifest. This is used to find and execute the actual command as well as swap any substitutions to simplify calls. diff --git a/images/nostromo-manifest-show.png b/images/nostromo-manifest-show.png index 755666c..ded5075 100644 Binary files a/images/nostromo-manifest-show.png and b/images/nostromo-manifest-show.png differ diff --git a/log/fieldmapper.go b/log/fieldmapper.go index 079861e..c57f616 100644 --- a/log/fieldmapper.go +++ b/log/fieldmapper.go @@ -39,13 +39,19 @@ func Fields(mapper FieldMapper) { if value == nil || omitKey(key) { continue } + + svalue := fmt.Sprint(value) + if len(svalue) == 0 { + continue + } + if !opt.verbose { fmt.Print(opt.theme.formatStyle(keyFieldStyle, key)) - fmt.Print(opt.theme.formatStyle(valueFieldStyle, ": "+fmt.Sprint(value))) + fmt.Print(opt.theme.formatStyle(valueFieldStyle, ": "+svalue)) fmt.Print(" ") } else { fmt.Print(opt.theme.formatStyle(keyFieldStyle, key)) - fmt.Println(opt.theme.formatStyle(valueFieldStyle, ": "+fmt.Sprint(value))) + fmt.Println(opt.theme.formatStyle(valueFieldStyle, ": "+svalue)) } } if !opt.verbose {