'Returns the command representing the trace up to this point.
Returns:
A string representing a Fire CLI command that would produce this trace.'

def GetCommand(self):

    args = []
    if self.name:
        args.append(self.name)
    for element in self.elements:
        if element.HasError():
            continue
        if element.args:
            args.extend(element.args)
        if element.HasSeparator():
            args.append(self.separator)
    if self.NeedsSeparator():
        args.append(self.separator)
    return '    '.join((self._Quote(arg) for arg in args))
