commands: don't show commands ending in ~

These are generally editor backups.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
bbcmd: shift search's target filenames func here

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: only show unique runtime matches

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: fix wildcard to be properly anchored

Wildcard matches begin at the start of the string, not as a search, yet
I forgot that the regex logic uses search, not match, so when wildcard was
converted to fnmatch.translate, this behavior was changed. Change it back by
anchoring the fnmatch regular expression.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: add -W/--word argument

This searches for a word, ala grep -w, by wrapping the regex (both for regex
and wildcard searches) with \b (word boundary).

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: properly filter out non-preferred providers

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: implement short-circuiting to trim the output

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: only show unique runtime matches

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: update usage information

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search-{packages,recipes}: add wrappers around search

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Add a bb-example template in share/bb

This is an example/template bb subcommand in python, which should be useful
when adding new commands. It includes the bits to import bbcmd even if the
subcommand doesn't live in bb/libexec/.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
list: add initial subcommand

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
search: use bbcmd.Tinfoil.all_preferred_filenames

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
list: kill unnecessary sys.path mangling

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
log: show recipe or cooker logs

Depending on the arguments, show either the log for a specific recipe/task, the
log for the latest task performed by a recipe, or the latest cooker log.

Signed-off-by: Ross Burton <ross.burton@intel.com>
contents: show the contents of packages generated by a recipe

Signed-off-by: Ross Burton <ross.burton@intel.com>