mappertool: add getancestors subcommand
Add a 'getancestors' subcommand that wraps the mapper's GetAncestors
D-Bus method. Given an object path, it prints each ancestor object
found in the mapper, along with the services that own it and the
interfaces each service implements there.
An optional -i/--interface flag (repeatable) restricts the output
to ancestors that implement a specific interface.
Usage: mappertool getancestors <path>
mappertool getancestors <path> -i <interface>
Change-Id: I1c5d70b4fdc4a922835aba6f0a0eaa90936c7fdb
Signed-off-by: Yash Patel <yash.pateltx@gmail.com>
This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it in the docs repository.
Non-OpenBMC build dependencies are:
meson build && ninja -C build
meson build && ninja -C build test
rm -rf build