docs: def resolve_alias(self, path_str):
          """Returns the actual command name. Uses the alias mapping."""
          if path_str in self.aliases:
              return self.aliases[path_str]
          return path_str