code: def action_show(self):
          
  
          # helper function to display one row with colors
          # r = [name, path, command]
          def show_a_row(r):
              msg = colored('Shortcut: ', 'cyan') \
                  + colored(r[0], 'white', attrs=['bold']) + '\n' \
                  + self.shortcut_str(r[1], r[2]) + '\n'
  
              print(msg)
  
          name = self.args['<name>']
  
          if name is None or name == 'all':
              # select all shortcuts
              self.db_query('''
                  SELECT name,path,command FROM shortcuts ORDER BY name
                  ''')
  
              entries = self.db_fetch_all()
  
              # show the shortcuts
              if (entries is None) or (len(entries) == 0):
                  print_err('No shortcuts defined.')
              else:
                  for row in entries:
                      show_a_row(row)
  
          else:
              # select shortcut by name
  
              self.db_query('''
                  SELECT name,path,command FROM shortcuts WHERE name=?
                  ''', (name,))
  
              rec = self.db_fetch_one()
  
              # show the shortcut
              if rec is None:
                  print_err('Shortcut "%s" does not exist.' % name)
              else:
                  show_a_row(rec)
docs: Show shortcut(s) value